Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1755)

Unified Diff: third_party/WebKit/Source/core/paint/BoxClipper.cpp

Issue 2624383002: Apply SVG viewport clips in PaintLayer; paint background of replaced like boxes. (Closed)
Patch Set: none Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698