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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..919c6f352068503cd175c26ecce75b7c31f85797 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -981,6 +981,16 @@ void SVGElement::invalidateInstances()
svgRareData()->elementInstances().clear();
}
+void SVGElement::setNeedsStyleRecalcForInstances(StyleChangeType changeType, const StyleChangeReasonForTracing& reason)
+{
+ const HeapHashSet<WeakMember<SVGElement>>& set = instancesForElement();
+ if (set.isEmpty())
+ return;
+
+ for (SVGElement* instance : set)
+ instance->setNeedsStyleRecalc(changeType, reason);
+}
+
SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetElement)
: m_targetElement(targetElement)
{
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698