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

Unified Diff: third_party/WebKit/Source/core/dom/Element.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/dom/Element.cpp
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
index 29813cdd9d1ffb3e0a18cf398789d7899df4fb85..c0ba68d89cadb65ad6008e1711f2c35ede1079b2 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1954,7 +1954,8 @@ StyleRecalcChange Element::recalcOwnStyle(StyleRecalcChange change) {
if (LayoutObject* layoutObject = this->layoutObject()) {
if (localChange != NoChange ||
pseudoStyleCacheIsInvalid(oldStyle.get(), newStyle.get()) ||
- svgFilterNeedsLayerUpdate()) {
+ svgFilterNeedsLayerUpdate() ||
+ (layoutObject->isSVG() && layoutObject->hasClipPath())) {
fs 2016/11/07 12:03:30 This does not look right.
layoutObject->setStyle(newStyle.get());
} else {
// Although no change occurred, we use the new style so that the cousin

Powered by Google App Engine
This is Rietveld 408576698