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

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

Issue 2869183002: Initial implementation of WorkletAnimation (Closed)
Patch Set: Use a prefinalizer 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 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 } 1194 }
1194 1195
1195 // Return a Locale for the default locale if the argument is null or empty. 1196 // Return a Locale for the default locale if the argument is null or empty.
1196 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom); 1197 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom);
1197 1198
1198 AnimationClock& GetAnimationClock(); 1199 AnimationClock& GetAnimationClock();
1199 DocumentTimeline& Timeline() const { return *timeline_; } 1200 DocumentTimeline& Timeline() const { return *timeline_; }
1200 CompositorPendingAnimations& GetCompositorPendingAnimations() { 1201 CompositorPendingAnimations& GetCompositorPendingAnimations() {
1201 return *compositor_pending_animations_; 1202 return *compositor_pending_animations_;
1202 } 1203 }
1204 WorkletAnimationController& GetWorkletAnimationController() {
1205 return *worklet_animation_controller_;
1206 }
1203 1207
1204 void AddToTopLayer(Element*, const Element* before = nullptr); 1208 void AddToTopLayer(Element*, const Element* before = nullptr);
1205 void RemoveFromTopLayer(Element*); 1209 void RemoveFromTopLayer(Element*);
1206 const HeapVector<Member<Element>>& TopLayerElements() const { 1210 const HeapVector<Member<Element>>& TopLayerElements() const {
1207 return top_layer_elements_; 1211 return top_layer_elements_;
1208 } 1212 }
1209 HTMLDialogElement* ActiveModalDialog() const; 1213 HTMLDialogElement* ActiveModalDialog() const;
1210 1214
1211 // A non-null m_templateDocumentHost implies that |this| was created by 1215 // A non-null m_templateDocumentHost implies that |this| was created by
1212 // ensureTemplateDocument(). 1216 // ensureTemplateDocument().
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 TaskRunnerTimer<Document> element_data_cache_clear_timer_; 1652 TaskRunnerTimer<Document> element_data_cache_clear_timer_;
1649 1653
1650 Member<ElementDataCache> element_data_cache_; 1654 Member<ElementDataCache> element_data_cache_;
1651 1655
1652 using LocaleIdentifierToLocaleMap = 1656 using LocaleIdentifierToLocaleMap =
1653 HashMap<AtomicString, std::unique_ptr<Locale>>; 1657 HashMap<AtomicString, std::unique_ptr<Locale>>;
1654 LocaleIdentifierToLocaleMap locale_cache_; 1658 LocaleIdentifierToLocaleMap locale_cache_;
1655 1659
1656 Member<DocumentTimeline> timeline_; 1660 Member<DocumentTimeline> timeline_;
1657 Member<CompositorPendingAnimations> compositor_pending_animations_; 1661 Member<CompositorPendingAnimations> compositor_pending_animations_;
1662 Member<WorkletAnimationController> worklet_animation_controller_;
1658 1663
1659 Member<Document> template_document_; 1664 Member<Document> template_document_;
1660 Member<Document> template_document_host_; 1665 Member<Document> template_document_host_;
1661 1666
1662 TaskRunnerTimer<Document> did_associate_form_controls_timer_; 1667 TaskRunnerTimer<Document> did_associate_form_controls_timer_;
1663 1668
1664 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_; 1669 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_;
1665 1670
1666 DOMTimerCoordinator timers_; 1671 DOMTimerCoordinator timers_;
1667 1672
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1742 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1747 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1743 1748
1744 } // namespace blink 1749 } // namespace blink
1745 1750
1746 #ifndef NDEBUG 1751 #ifndef NDEBUG
1747 // Outside the WebCore namespace for ease of invocation from gdb. 1752 // Outside the WebCore namespace for ease of invocation from gdb.
1748 CORE_EXPORT void showLiveDocumentInstances(); 1753 CORE_EXPORT void showLiveDocumentInstances();
1749 #endif 1754 #endif
1750 1755
1751 #endif // Document_h 1756 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698