Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
| index 8ed7a2e8750bd33e608b4aff16bb47cd6573e0ee..9b8f55a12f905c8e02fb22c628032d3503d028ea 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp |
| @@ -345,9 +345,10 @@ void PaintLayerClipper::calculateRects( |
| // Update the clip rects that will be passed to child layers. |
| if (shouldClipOverflow(context)) { |
| - foregroundRect.intersect( |
| + LayoutRect offsetOverflowClipRect = |
| toLayoutBox(layoutObject) |
| - .overflowClipRect(offset, context.overlayScrollbarClipBehavior)); |
| + .overflowClipRect(offset, context.overlayScrollbarClipBehavior); |
| + foregroundRect.intersect(offsetOverflowClipRect); |
|
chrishtr
2016/12/02 19:21:47
Is this just increasing clarity?
Stephen Chennney
2016/12/07 21:39:38
It was for debugging output. I've reverted it.
|
| if (layoutObject.styleRef().hasBorderRadius()) |
| foregroundRect.setHasRadius(true); |