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

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

Issue 1991513003: Lock animated property type of result animation during processing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lock-animated-property-in
Patch Set: Created 4 years, 7 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/svg/SVGAnimateElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
index 6429c840440def0edeac06af55d24b1fc7145d30..072c98a5a4248ece8ce41ba61ed05f939cddf049 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
@@ -286,6 +286,11 @@ void SVGAnimateElement::clearAnimatedType()
if (!m_animatedProperty)
return;
+ // The animated property lock is held while we're a result
+ // animation for a animation group. We will very likely crash
+ // later if we clear the animated type while the lock is held.
+ RELEASE_ASSERT(!m_animatedPropertyLocked);
+
SVGElement* targetElement = this->targetElement();
if (!targetElement) {
m_animatedProperty.clear();

Powered by Google App Engine
This is Rietveld 408576698