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

Unified Diff: third_party/WebKit/Source/core/animation/KeyframeEffect.cpp

Issue 1474263002: Clear SVG Web Animation effects when animations exit their fill phase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgPathInterpolationType
Patch Set: Check rare data Created 5 years, 1 month 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/animation/KeyframeEffect.cpp
diff --git a/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp b/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp
index 1ac4bf6dd61860701f648a5cc0d28be298cda05e..50d453fe2ccff06f411e8455d12fe5ac7fe8b458 100644
--- a/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp
+++ b/third_party/WebKit/Source/core/animation/KeyframeEffect.cpp
@@ -209,6 +209,8 @@ void KeyframeEffect::clearEffects()
m_sampledEffect = nullptr;
restartAnimationOnCompositor();
m_target->setNeedsAnimationStyleRecalc();
+ if (RuntimeEnabledFeatures::webAnimationsSVGEnabled() && m_target->isSVGElement())
+ toSVGElement(*m_target).clearWebAnimatedAttributes();
invalidate();
}

Powered by Google App Engine
This is Rietveld 408576698