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

Unified Diff: Source/core/svg/SVGAnimateElement.cpp

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reasons as tuple Created 6 years, 3 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: Source/core/svg/SVGAnimateElement.cpp
diff --git a/Source/core/svg/SVGAnimateElement.cpp b/Source/core/svg/SVGAnimateElement.cpp
index fb5ca0dd4cad38c0c4647aca3881ea98e6fc433d..dc4d936fe3d82d210dc13d0320ae95e22a4b50cb 100644
--- a/Source/core/svg/SVGAnimateElement.cpp
+++ b/Source/core/svg/SVGAnimateElement.cpp
@@ -204,7 +204,7 @@ static inline void applyCSSPropertyToTarget(SVGElement* targetElement, CSSProper
if (!propertySet->setProperty(id, value, false, 0))
return;
- targetElement->setNeedsStyleRecalc(LocalStyleChange);
+ targetElement->setNeedsStyleRecalc(StyleChangeReasonForTracing::create(StyleChangeReason::Animation), LocalStyleChange);
}
static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPropertyID id)
@@ -213,7 +213,7 @@ static inline void removeCSSPropertyFromTarget(SVGElement* targetElement, CSSPro
ASSERT_WITH_SECURITY_IMPLICATION(!targetElement->m_deletionHasBegun);
#endif
targetElement->ensureAnimatedSMILStyleProperties()->removeProperty(id);
- targetElement->setNeedsStyleRecalc(LocalStyleChange);
+ targetElement->setNeedsStyleRecalc(StyleChangeReasonForTracing::create(StyleChangeReason::Animation), LocalStyleChange);
}
static inline void applyCSSPropertyToTargetAndInstances(SVGElement* targetElement, const QualifiedName& attributeName, const String& valueAsString)

Powered by Google App Engine
This is Rietveld 408576698