Lines Matching defs:LayoutRect

43 class PLATFORM_EXPORT 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&);
164 LayoutRect transposedRect() const { return LayoutRect(m_location.transposedPoint(), m_size.transposedSize()); }
166 static LayoutRect infiniteRect()
169 return LayoutRect(LayoutUnit::nearlyMin() / 2, LayoutUnit::nearlyMin() / 2, LayoutUnit::nearlyMax(), LayoutUnit::nearlyMax());
182 inline LayoutRect intersection(const LayoutRect& a, const LayoutRect& b)
184 LayoutRect c = a;
189 inline LayoutRect unionRect(const LayoutRect& a, const LayoutRect& b)
191 LayoutRect c = a;
196 PLATFORM_EXPORT LayoutRect unionRect(const Vector<LayoutRect>&);
198 ALWAYS_INLINE bool operator==(const LayoutRect& a, const LayoutRect& b)
203 inline bool operator!=(const LayoutRect& a, const LayoutRect& b)
208 inline IntRect pixelSnappedIntRect(const LayoutRect& rect)
215 PLATFORM_EXPORT IntRect enclosingIntRect(const LayoutRect&);
216 PLATFORM_EXPORT LayoutRect enclosingLayoutRect(const FloatRect&);