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

Side by Side Diff: Source/core/animation/DocumentTimeline.h

Issue 46043014: Web Animations CSS: Unfreeze AnimationClock if sampling timelines does not trigger style recalc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reinstate assert Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 public: 53 public:
54 // Calls DocumentTimeline's wake() method after duration seconds. 54 // Calls DocumentTimeline's wake() method after duration seconds.
55 virtual void wakeAfter(double duration) = 0; 55 virtual void wakeAfter(double duration) = 0;
56 virtual void cancelWake() = 0; 56 virtual void cancelWake() = 0;
57 virtual void serviceOnNextFrame() = 0; 57 virtual void serviceOnNextFrame() = 0;
58 virtual ~PlatformTiming() { } 58 virtual ~PlatformTiming() { }
59 59
60 }; 60 };
61 61
62 static PassRefPtr<DocumentTimeline> create(Document*, PassOwnPtr<PlatformTim ing> = nullptr); 62 static PassRefPtr<DocumentTimeline> create(Document*, PassOwnPtr<PlatformTim ing> = nullptr);
63 void serviceAnimations(double); 63 // Returns whether style recalc was triggered.
64 bool serviceAnimations();
64 PassRefPtr<Player> play(TimedItem*); 65 PassRefPtr<Player> play(TimedItem*);
65 // Called from setReadyState() in Document.cpp to set m_zeroTime to 66 // Called from setReadyState() in Document.cpp to set m_zeroTime to
66 // performance.timing.domInteractive 67 // performance.timing.domInteractive
67 void setZeroTime(double); 68 void setZeroTime(double);
68 double currentTime(); 69 double currentTime();
69 void pauseAnimationsForTesting(double); 70 void pauseAnimationsForTesting(double);
70 size_t numberOfActiveAnimationsForTesting() const; 71 size_t numberOfActiveAnimationsForTesting() const;
71 72
72 void addEventToDispatch(EventTarget* target, PassRefPtr<Event> event) 73 void addEventToDispatch(EventTarget* target, PassRefPtr<Event> event)
73 { 74 {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 Timer<DocumentTimelineTiming> m_timer; 122 Timer<DocumentTimelineTiming> m_timer;
122 123
123 }; 124 };
124 125
125 friend class CoreAnimationDocumentTimelineTest; 126 friend class CoreAnimationDocumentTimelineTest;
126 }; 127 };
127 128
128 } // namespace 129 } // namespace
129 130
130 #endif 131 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698