Chromium Code Reviews| Index: third_party/WebKit/Source/platform/geometry/LayoutRect.h |
| diff --git a/third_party/WebKit/Source/platform/geometry/LayoutRect.h b/third_party/WebKit/Source/platform/geometry/LayoutRect.h |
| index 0964d2559f32c2b2a0dd155cdad4c73b0706bce3..2705927b4c8c3e621b6152d29603312d4f0b6b21 100644 |
| --- a/third_party/WebKit/Source/platform/geometry/LayoutRect.h |
| +++ b/third_party/WebKit/Source/platform/geometry/LayoutRect.h |
| @@ -164,6 +164,8 @@ public: |
| void unite(const LayoutRect&); |
| void uniteIfNonZero(const LayoutRect&); |
| + bool inclusiveIntersect(const LayoutRect&); |
|
chrishtr
2016/03/21 22:14:50
Document this.
|
| + |
| // Besides non-empty rects, this method also unites empty rects (as points or line segments). |
| // For example, union of (100, 100, 0x0) and (200, 200, 50x0) is (100, 100, 150x100). |
| void uniteEvenIfEmpty(const LayoutRect&); |