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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Remove WorkletAnimationTest.cpp from BUILD.gn Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 16 matching lines...) Expand all
27 * 27 *
28 */ 28 */
29 29
30 #ifndef Document_h 30 #ifndef Document_h
31 #define Document_h 31 #define Document_h
32 32
33 #include <memory> 33 #include <memory>
34 #include "bindings/core/v8/ExceptionState.h" 34 #include "bindings/core/v8/ExceptionState.h"
35 #include "bindings/core/v8/ScriptValue.h" 35 #include "bindings/core/v8/ScriptValue.h"
36 #include "core/CoreExport.h" 36 #include "core/CoreExport.h"
37 #include "core/animation/WorkletAnimationController.h"
37 #include "core/dom/ContainerNode.h" 38 #include "core/dom/ContainerNode.h"
38 #include "core/dom/DocumentEncodingData.h" 39 #include "core/dom/DocumentEncodingData.h"
39 #include "core/dom/DocumentInit.h" 40 #include "core/dom/DocumentInit.h"
40 #include "core/dom/DocumentLifecycle.h" 41 #include "core/dom/DocumentLifecycle.h"
41 #include "core/dom/DocumentShutdownNotifier.h" 42 #include "core/dom/DocumentShutdownNotifier.h"
42 #include "core/dom/DocumentShutdownObserver.h" 43 #include "core/dom/DocumentShutdownObserver.h"
43 #include "core/dom/DocumentTiming.h" 44 #include "core/dom/DocumentTiming.h"
44 #include "core/dom/ExecutionContext.h" 45 #include "core/dom/ExecutionContext.h"
45 #include "core/dom/MutationObserver.h" 46 #include "core/dom/MutationObserver.h"
46 #include "core/dom/SynchronousMutationNotifier.h" 47 #include "core/dom/SynchronousMutationNotifier.h"
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 } 1191 }
1191 1192
1192 // Return a Locale for the default locale if the argument is null or empty. 1193 // Return a Locale for the default locale if the argument is null or empty.
1193 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom); 1194 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom);
1194 1195
1195 AnimationClock& GetAnimationClock(); 1196 AnimationClock& GetAnimationClock();
1196 DocumentTimeline& Timeline() const { return *timeline_; } 1197 DocumentTimeline& Timeline() const { return *timeline_; }
1197 CompositorPendingAnimations& GetCompositorPendingAnimations() { 1198 CompositorPendingAnimations& GetCompositorPendingAnimations() {
1198 return *compositor_pending_animations_; 1199 return *compositor_pending_animations_;
1199 } 1200 }
1201 WorkletAnimationController& GetWorkletAnimationController() {
1202 return *worklet_animation_controller_;
1203 }
1200 1204
1201 void AddToTopLayer(Element*, const Element* before = nullptr); 1205 void AddToTopLayer(Element*, const Element* before = nullptr);
1202 void RemoveFromTopLayer(Element*); 1206 void RemoveFromTopLayer(Element*);
1203 const HeapVector<Member<Element>>& TopLayerElements() const { 1207 const HeapVector<Member<Element>>& TopLayerElements() const {
1204 return top_layer_elements_; 1208 return top_layer_elements_;
1205 } 1209 }
1206 HTMLDialogElement* ActiveModalDialog() const; 1210 HTMLDialogElement* ActiveModalDialog() const;
1207 1211
1208 // A non-null m_templateDocumentHost implies that |this| was created by 1212 // A non-null m_templateDocumentHost implies that |this| was created by
1209 // ensureTemplateDocument(). 1213 // ensureTemplateDocument().
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 TaskRunnerTimer<Document> element_data_cache_clear_timer_; 1649 TaskRunnerTimer<Document> element_data_cache_clear_timer_;
1646 1650
1647 Member<ElementDataCache> element_data_cache_; 1651 Member<ElementDataCache> element_data_cache_;
1648 1652
1649 using LocaleIdentifierToLocaleMap = 1653 using LocaleIdentifierToLocaleMap =
1650 HashMap<AtomicString, std::unique_ptr<Locale>>; 1654 HashMap<AtomicString, std::unique_ptr<Locale>>;
1651 LocaleIdentifierToLocaleMap locale_cache_; 1655 LocaleIdentifierToLocaleMap locale_cache_;
1652 1656
1653 Member<DocumentTimeline> timeline_; 1657 Member<DocumentTimeline> timeline_;
1654 Member<CompositorPendingAnimations> compositor_pending_animations_; 1658 Member<CompositorPendingAnimations> compositor_pending_animations_;
1659 Member<WorkletAnimationController> worklet_animation_controller_;
1655 1660
1656 Member<Document> template_document_; 1661 Member<Document> template_document_;
1657 Member<Document> template_document_host_; 1662 Member<Document> template_document_host_;
1658 1663
1659 TaskRunnerTimer<Document> did_associate_form_controls_timer_; 1664 TaskRunnerTimer<Document> did_associate_form_controls_timer_;
1660 1665
1661 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_; 1666 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_;
1662 1667
1663 DOMTimerCoordinator timers_; 1668 DOMTimerCoordinator timers_;
1664 1669
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1744 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1740 1745
1741 } // namespace blink 1746 } // namespace blink
1742 1747
1743 #ifndef NDEBUG 1748 #ifndef NDEBUG
1744 // Outside the WebCore namespace for ease of invocation from gdb. 1749 // Outside the WebCore namespace for ease of invocation from gdb.
1745 CORE_EXPORT void showLiveDocumentInstances(); 1750 CORE_EXPORT void showLiveDocumentInstances();
1746 #endif 1751 #endif
1747 1752
1748 #endif // Document_h 1753 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698