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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2251073002: CSS: SVG use elements replicate updates to style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tidy Created 4 years, 4 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/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 49dbf9b8451b05d823c51a817960c9524f3005b2..903da3747d9b2ceed73c47e398d0588843251645 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -89,6 +89,7 @@
#include "core/layout/LayoutBox.h"
#include "core/page/ContextMenuController.h"
#include "core/page/Page.h"
+#include "core/svg/SVGElement.h"
#include "core/svg/graphics/SVGImage.h"
#include "platform/EventDispatchForbiddenScope.h"
#include "platform/RuntimeEnabledFeatures.h"
@@ -705,6 +706,9 @@ void Node::setNeedsStyleRecalc(StyleChangeType changeType, const StyleChangeReas
if (isElementNode() && hasRareData())
toElement(*this).setAnimationStyleChange(false);
+
+ if (isSVGElement())
+ toSVGElement(this)->setNeedsStyleRecalcForInstances(changeType, reason);
}
void Node::clearNeedsStyleRecalc()

Powered by Google App Engine
This is Rietveld 408576698