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

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: Rebased. 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..4f0d7f12333464a344403dcc751c51a683a5656d 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,12 @@ public:
PassRefPtr<Player> play(TimedItem*);
double currentTime() { return m_currentTime; }
void pauseAnimationsForTesting(double);
+ AnimationStack* animationStack(const Element* element) const
+ {
+ if (ActiveAnimations* animations = element->activeAnimations())
+ return animations->defaultStack();
+ return 0;
+ }
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