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

Unified Diff: third_party/WebKit/Source/core/animation/DocumentAnimation.h

Issue 2947103002: Expose getAnimations as function on Document (Closed)
Patch Set: Rebase Created 3 years, 6 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
Index: third_party/WebKit/Source/core/animation/DocumentAnimation.h
diff --git a/third_party/WebKit/Source/core/animation/DocumentAnimation.h b/third_party/WebKit/Source/core/animation/DocumentAnimation.h
index 4dd9c118781e2f8db7a57f49dac7ac81c1248439..a8963b3c24446a05742dbfd393e19622260cdbd7 100644
--- a/third_party/WebKit/Source/core/animation/DocumentAnimation.h
+++ b/third_party/WebKit/Source/core/animation/DocumentAnimation.h
@@ -5,6 +5,8 @@
#ifndef DocumentAnimation_h
#define DocumentAnimation_h
+#include "core/animation/Animation.h"
+#include "core/animation/DocumentTimeline.h"
#include "core/dom/Document.h"
#include "platform/wtf/Allocator.h"
@@ -17,6 +19,10 @@ class DocumentAnimation {
static DocumentTimeline* timeline(Document& document) {
return &document.Timeline();
}
+
+ static HeapVector<Member<Animation>> getAnimations(Document& document) {
+ return document.Timeline().getAnimations();
+ }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698