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

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

Issue 548223002: Web-Animations: Implement idle state for AnimationPlayers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use known current time in finish event 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
« no previous file with comments | « LayoutTests/web-animations-api/player-cancel-finishes.html ('k') | Source/core/animation/AnimationPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Animation.cpp
diff --git a/Source/core/animation/Animation.cpp b/Source/core/animation/Animation.cpp
index 54dca22c4abf9374958757c476aa55ab90aa465f..02cbf0116ec582c00dd494072851cca1408267c4 100644
--- a/Source/core/animation/Animation.cpp
+++ b/Source/core/animation/Animation.cpp
@@ -193,6 +193,8 @@ double Animation::calculateTimeToEffectChange(bool forwards, double localTime, d
const double end = start + activeDurationInternal();
switch (phase()) {
+ case PhaseNone:
+ return std::numeric_limits<double>::infinity();
case PhaseBefore:
ASSERT(start >= localTime);
return forwards
« no previous file with comments | « LayoutTests/web-animations-api/player-cancel-finishes.html ('k') | Source/core/animation/AnimationPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698