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

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

Issue 19266007: Web Animations: Introduce ActiveAnimations and AnimationStack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed maps. Store ActiveAnimations in ElementRareData. Created 7 years, 5 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/AnimationStack.h ('k') | Source/core/animation/Player.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/DocumentTimeline.h
diff --git a/Source/core/animation/DocumentTimeline.h b/Source/core/animation/DocumentTimeline.h
index a2bd963f0bda4d5263b09db30bdaeecfc90a2a07..9093b3d6c3350d3a845224f86fe6db937d97cbd3 100644
--- a/Source/core/animation/DocumentTimeline.h
+++ b/Source/core/animation/DocumentTimeline.h
@@ -31,7 +31,9 @@
#ifndef DocumentTimeline_h
#define DocumentTimeline_h
+#include "core/animation/ActiveAnimations.h"
#include "core/animation/Player.h"
+#include "core/dom/Element.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -50,6 +52,13 @@ public:
PassRefPtr<Player> play(TimedItem*);
double currentTime() { return m_currentTime; }
void pauseAnimationsForTesting(double);
+ AnimationStack* animationStack(const Element* element) const
+ {
+ if (!element->activeAnimations())
+ return 0;
+ return element->activeAnimations()->defaultStack();
esprehn 2013/07/23 01:20:38 if (ActiveAnimations* animations = element->active
dstockwell 2013/07/23 01:33:00 Done.
+ }
+ AnimationStack* ensureAnimationStack(Element* element) { return element->ensureActiveAnimations()->defaultStack(); }
esprehn 2013/07/23 01:20:38 Remove this method, just call this directly or put
dstockwell 2013/07/23 01:33:00 Removed. The plan was for this to become virtual
private:
DocumentTimeline(Document*);
« no previous file with comments | « Source/core/animation/AnimationStack.h ('k') | Source/core/animation/Player.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698