| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 95d95708beb1699297998eb54c4eb55b97dd2459..b842d72539a3c8527614a8afaef4dd0f922a4d19 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -976,10 +976,8 @@ bool LayoutBox::applyOverflowClip(LayoutRect& rect, VisualRectFlags visualRectFl
|
|
|
| flipForWritingMode(rect);
|
|
|
| - // size() is inaccurate if we're in the middle of a layout of this LayoutBox, so use the
|
| - // layer's size instead. Even if the layer's size is wrong, the layer itself will issue paint invalidations
|
| - // anyway if its size does change.
|
| - LayoutRect clipRect(LayoutPoint(), LayoutSize(layer()->size()));
|
| + LayoutRect clipRect = overflowClipRect(LayoutPoint());
|
| +
|
| bool doesIntersect;
|
| if (visualRectFlags & EdgeInclusive) {
|
| doesIntersect = rect.inclusiveIntersect(clipRect);
|
|
|