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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2375043002: Fix up that no render SVG shape when change clip-path to visible after hidden. (Closed)
Patch Set: Issue 590153 Created 4 years, 1 month 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/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 4e3cbf445b5bb3b2f91f048884e177cc599ba291..f4394b90efa070269ca640f44097d4126224c71f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1541,6 +1541,10 @@ StyleDifference LayoutObject::adjustStyleDifference(
diff.setNeedsPaintInvalidationObject();
}
+ if (!diff.needsPaintInvalidation() && isSVG() && hasClipPath() &&
fs 2016/11/07 12:03:30 Neither does this (very/overly case-specific.)
+ style()->visibility() == EVisibility::Visible)
+ diff.setNeedsPaintInvalidationObject();
+
// The answer to layerTypeRequired() for plugins, iframes, and canvas can
// change without the actual style changing, since it depends on whether we
// decide to composite these elements. When the/ layer status of one of these

Powered by Google App Engine
This is Rietveld 408576698