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

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

Issue 215043007: Web Animations: Expose timeline currentTime in IDL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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
Index: Source/core/animation/AnimationPlayer.cpp
diff --git a/Source/core/animation/AnimationPlayer.cpp b/Source/core/animation/AnimationPlayer.cpp
index 48351215c4e60238decff833135fed84c1410bb3..54ac66c44a6a0f6421fed62c0d2b1178d15cf5e1 100644
--- a/Source/core/animation/AnimationPlayer.cpp
+++ b/Source/core/animation/AnimationPlayer.cpp
@@ -285,7 +285,10 @@ bool AnimationPlayer::update()
if (!m_timeline || !m_content)
return false;
- double inheritedTime = isNull(m_timeline->currentTime()) ? nullValue() : currentTime();
+ bool isNullTime;
+ m_timeline->currentTime(isNullTime);
dstockwell 2014/03/31 23:33:29 Doesn't the old way still work? Seems like this c
Eric Willigers 2014/04/01 01:15:45 Done.
+ double inheritedTime = isNullTime ? nullValue() : currentTime();
+
m_content->updateInheritedTime(inheritedTime);
ASSERT(!m_outdated);

Powered by Google App Engine
This is Rietveld 408576698