| 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 9e645da8363a753f0f606e0f198115c39de39765..44553cf74390c80e71bbc69a508710e3cb462198 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp
|
| @@ -212,8 +212,7 @@ void PaintLayerClipper::calculateRects(const ClipRectsContext& context, const La
|
| layerBounds = LayoutRect(offset, LayoutSize(m_layer.size()));
|
|
|
| // Update the clip rects that will be passed to child layers.
|
| - if ((layoutObject.hasOverflowClip() && shouldRespectOverflowClip(context))
|
| - || (layoutObject.styleRef().containsPaint() && layoutObject.isBox())) {
|
| + if ((layoutObject.hasOverflowClip() || layoutObject.styleRef().containsPaint()) && shouldRespectOverflowClip(context)) {
|
| foregroundRect.intersect(toLayoutBox(layoutObject).overflowClipRect(offset, context.overlayScrollbarClipBehavior));
|
| if (layoutObject.styleRef().hasBorderRadius())
|
| foregroundRect.setHasRadius(true);
|
|
|