Index: third_party/WebKit/Source/core/svg/SVGElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp |
index d8ab12de22c78c29c6a05a5c7bf7967bd5e90f54..d2a5de99937469484b09bd74877a7cc6e37a1fa4 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp |
@@ -981,6 +981,17 @@ void SVGElement::invalidateInstances() |
svgRareData()->elementInstances().clear(); |
} |
+void SVGElement::instancesNeedsStyleRecalc(StyleChangeType changeType, const StyleChangeReasonForTracing& reason) |
+{ |
+ const HeapHashSet<WeakMember<SVGElement>>& set = instancesForElement(); |
+ if (set.isEmpty()) |
+ return; |
+ |
+ for (SVGElement* instance : set) { |
+ instance->setNeedsStyleRecalc(changeType, reason); |
+ } |
rune
2016/08/18 23:43:07
Unnecessary { }
Eric Willigers
2016/08/19 00:44:19
Done.
|
+} |
+ |
SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetElement) |
: m_targetElement(targetElement) |
{ |