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

Unified Diff: third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp

Issue 2763283002: Revalidate SMIL animation value after target change (Closed)
Patch Set: Created 3 years, 9 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/LayoutTests/svg/animations/target-move-crash-expected.txt ('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/animation/SVGSMILElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
index 02e3d662659dfa8c27b9f901cfd8be8e860dd3fa..9f52f11b9453d9e1cc4ae6287fcbcff364f7f8b5 100644
--- a/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
+++ b/third_party/WebKit/Source/core/svg/animation/SVGSMILElement.cpp
@@ -615,6 +615,11 @@ void SVGSMILElement::setTargetElement(SVGElement* target) {
m_targetElement = target;
didChangeAnimationTarget();
+
+ // If the animation is scheduled and there's an active interval, then
+ // revalidate the animation value.
+ if (m_activeState != Inactive && m_isScheduled)
+ startedActiveInterval();
}
SMILTime SVGSMILElement::elapsed() const {
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/animations/target-move-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698