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

Unified Diff: Source/core/animation/AnimationTimeline.h

Issue 551253002: Web Animations: Zero time of the document timeline should correspond with navigationStart (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Specify time when resetting animation clock in tests. 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/AnimationTest.cpp ('k') | Source/core/animation/AnimationTimeline.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationTimeline.h
diff --git a/Source/core/animation/AnimationTimeline.h b/Source/core/animation/AnimationTimeline.h
index 3d91d89abdf8893ef295a83c9aa8bb75ec21c502..1d4fde3d2a3c1bc47fe5045ea8d382480f691214 100644
--- a/Source/core/animation/AnimationTimeline.h
+++ b/Source/core/animation/AnimationTimeline.h
@@ -80,7 +80,7 @@ public:
#endif
bool hasPendingUpdates() const { return !m_playersNeedingUpdate.isEmpty(); }
- double zeroTime() const { return 0; }
+ double zeroTime();
double currentTime(bool& isNull);
double currentTime();
double currentTimeInternal(bool& isNull);
@@ -104,6 +104,7 @@ protected:
private:
RawPtrWillBeMember<Document> m_document;
+ double m_zeroTime;
// AnimationPlayers which will be updated on the next frame
// i.e. current, in effect, or had timing changed
WillBeHeapHashSet<RefPtrWillBeMember<AnimationPlayer> > m_playersNeedingUpdate;
« no previous file with comments | « Source/core/animation/AnimationTest.cpp ('k') | Source/core/animation/AnimationTimeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698