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

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

Issue 556453004: Web Animations: Use null for unresolved startTime and currentTime in AnimationPlayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert formatting change. 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 | « Source/core/animation/AnimationPlayer.h ('k') | Source/core/animation/AnimationPlayer.idl » ('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 6d4e287345dd835980d56907164d16d1f4faa32a..97f5b92eef45111fc7deb227386a16dc822ae98c 100644
--- a/Source/core/animation/AnimationPlayer.cpp
+++ b/Source/core/animation/AnimationPlayer.cpp
@@ -147,11 +147,25 @@ void AnimationPlayer::updateCurrentTimingState(TimingUpdateReason reason)
m_holdTime = m_playbackRate < 0 ? 0 : sourceEnd();
}
+double AnimationPlayer::startTime(bool& isNull) const
+{
+ double result = startTime();
+ isNull = std::isnan(result);
+ return result;
+}
+
double AnimationPlayer::startTime() const
{
return m_startTime * 1000;
}
+double AnimationPlayer::currentTime(bool& isNull)
+{
+ double result = currentTime();
+ isNull = std::isnan(result);
+ return result;
+}
+
double AnimationPlayer::currentTime()
{
if (m_currentTimePending || m_idle)
« no previous file with comments | « Source/core/animation/AnimationPlayer.h ('k') | Source/core/animation/AnimationPlayer.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698