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

Unified Diff: Source/core/animation/AnimationPlayer.cpp

Issue 1030103002: Transitions: Downgrade transition to animation after it has finished (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | « LayoutTests/web-animations-api/transitions-replay.html ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationPlayer.cpp
diff --git a/Source/core/animation/AnimationPlayer.cpp b/Source/core/animation/AnimationPlayer.cpp
index 50a57d2ce6acb01982f135bdb527fd352c6751b9..b920dbe3b76415182a3084f25d1cef5f20e600dc 100644
--- a/Source/core/animation/AnimationPlayer.cpp
+++ b/Source/core/animation/AnimationPlayer.cpp
@@ -803,12 +803,6 @@ void AnimationPlayer::cancel()
m_startTime = nullValue();
m_currentTimePending = false;
- // after cancelation, transitions must be downgraded or they'll fail
- // to be considered when retriggering themselves. This can happen if
- // the transition is captured through getAnimationPlayers then played.
- if (m_content && m_content->isAnimation())
- toAnimation(m_content.get())->downgradeToNormalAnimation();
-
InspectorInstrumentation::didCancelAnimationPlayer(timeline()->document(), this);
}
« no previous file with comments | « LayoutTests/web-animations-api/transitions-replay.html ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698