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() |