diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/dom/document_or_shadow_root.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/dom/document_or_shadow_root.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/dom/document_or_shadow_root.h b/chromium/third_party/blink/renderer/core/dom/document_or_shadow_root.h index 6e0427e3566..cfed2ae42a7 100644 --- a/chromium/third_party/blink/renderer/core/dom/document_or_shadow_root.h +++ b/chromium/third_party/blink/renderer/core/dom/document_or_shadow_root.h @@ -5,6 +5,7 @@ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_DOM_DOCUMENT_OR_SHADOW_ROOT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_DOM_DOCUMENT_OR_SHADOW_ROOT_H_ +#include "third_party/blink/renderer/core/animation/document_animation.h" #include "third_party/blink/renderer/core/dom/document.h" #include "third_party/blink/renderer/core/dom/shadow_root.h" #include "third_party/blink/renderer/core/frame/web_feature.h" @@ -50,6 +51,15 @@ class DocumentOrShadowRoot { return tree_scope.GetSelection(); } + static HeapVector<Member<Animation>> getAnimations(Document& document) { + return document.GetDocumentAnimations().getAnimations(document); + } + + static HeapVector<Member<Animation>> getAnimations(ShadowRoot& shadow_root) { + return shadow_root.GetDocument().GetDocumentAnimations().getAnimations( + shadow_root); + } + static Element* elementFromPoint(TreeScope& tree_scope, double x, double y) { return tree_scope.ElementFromPoint(x, y); } |