| Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| index a0a17d3962ef13e7d138575fc7b25be600a0f5ca..e388aaff88dbc94db86bc74a32d1a0c531bf55e1 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| @@ -532,9 +532,7 @@ void PaintPropertyTreeBuilder::updateOverflowClip(
|
| LayoutRect clipRect;
|
| if (box.hasControlClip()) {
|
| clipRect = box.controlClipRect(context.current.paintOffset);
|
| - } else if (box.hasOverflowClip() || box.styleRef().containsPaint() ||
|
| - (box.isSVGRoot() &&
|
| - toLayoutSVGRoot(box).shouldApplyViewportClip())) {
|
| + } else if (box.shouldClipOverflow()) {
|
| clipRect = LayoutRect(pixelSnappedIntRect(
|
| box.overflowClipRect(context.current.paintOffset)));
|
| } else {
|
|
|