Index: third_party/WebKit/Source/core/layout/LayoutBox.h |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h |
index 007845e72fff036449020792a49f33fb7ac9398c..15b709022fcbd16df479fa87b6adc045e5025baa 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h |
@@ -639,7 +639,7 @@ public: |
bool hasForcedBreakAfter() const; |
LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer, const PaintInvalidationState* = nullptr) const override; |
- void mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, LayoutRect&, const PaintInvalidationState*) const override; |
+ bool mapToVisibleRectInAncestorSpace(const LayoutBoxModelObject* ancestor, LayoutRect&, const PaintInvalidationState*, int flags = 0) const override; |
virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); |
LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const; |
@@ -842,7 +842,11 @@ public: |
IntSize scrolledContentOffset() const; |
void mapScrollingContentsRectToBoxSpace(LayoutRect&) const; |
- void applyOverflowClip(LayoutRect&) const; |
+ |
+ // Returns true if the rect actually intersects the clipping region. |
+ // If edgeInclusive is true, then this method may return true even |
+ // if the resulting rect has zero area. |
+ bool applyOverflowClip(LayoutRect&, int flags = 0) const; |
virtual bool hasRelativeLogicalWidth() const; |
virtual bool hasRelativeLogicalHeight() const; |