Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/BoxClipper.cpp |
| diff --git a/third_party/WebKit/Source/core/paint/BoxClipper.cpp b/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
| index 17ca2c8c1a28de154603cee5932ff6d1cc5ea56a..3d52f76b705525ea7f725bdb38acea8c55677ccf 100644 |
| --- a/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
| +++ b/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
| @@ -19,8 +19,6 @@ namespace blink { |
| static bool boxNeedsClip(const LayoutBox& box) { |
| if (box.hasControlClip()) |
| return true; |
| - if (box.isSVGRoot() && toLayoutSVGRoot(box).shouldApplyViewportClip()) |
|
pdr.
2017/01/13 22:09:36
Please move this down a few lines.
chrishtr
2017/01/13 22:14:22
Done. Also added a comment inspired by your catch.
|
| - return true; |
| if (box.hasLayer() && box.layer()->isSelfPaintingLayer()) |
| return false; |
| return box.hasOverflowClip() || box.styleRef().containsPaint(); |