Home | History | Annotate | Download | only in graphics

Lines Matching defs:LayoutRect

43 class LayoutRect {
45 LayoutRect() { }
46 LayoutRect(const LayoutPoint& location, const LayoutSize& size)
48 LayoutRect(LayoutUnit x, LayoutUnit y, LayoutUnit width, LayoutUnit height)
50 LayoutRect(const FloatPoint& location, const FloatSize& size)
52 LayoutRect(const IntRect& rect) : m_location(rect.location()), m_size(rect.size()) { }
54 explicit LayoutRect(const FloatRect&); // don't do this implicitly since it's lossy
137 bool intersects(const LayoutRect&) const;
138 bool contains(const LayoutRect&) const;
146 void intersect(const LayoutRect&);
147 void unite(const LayoutRect&);
148 void uniteIfNonZero(const LayoutRect&);
163 LayoutRect transposedRect() const { return LayoutRect(m_location.transposedPoint(), m_size.transposedSize()); }
165 static LayoutRect infiniteRect()
168 return LayoutRect(LayoutUnit::nearlyMin() / 2, LayoutUnit::nearlyMin() / 2, LayoutUnit::nearlyMax(), LayoutUnit::nearlyMax());
176 inline LayoutRect intersection(const LayoutRect& a, const LayoutRect& b)
178 LayoutRect c = a;
183 inline LayoutRect unionRect(const LayoutRect& a, const LayoutRect& b)
185 LayoutRect c = a;
190 LayoutRect unionRect(const Vector<LayoutRect>&);
192 inline bool operator==(const LayoutRect& a, const LayoutRect& b)
197 inline bool operator!=(const LayoutRect& a, const LayoutRect& b)
202 inline IntRect pixelSnappedIntRect(const LayoutRect& rect)
208 IntRect enclosingIntRect(const LayoutRect&);
209 LayoutRect enclosingLayoutRect(const FloatRect&);