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

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

Issue 2869183002: Initial implementation of WorkletAnimation (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 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/DocumentTiming.h" 42 #include "core/dom/DocumentTiming.h"
42 #include "core/dom/ExecutionContext.h" 43 #include "core/dom/ExecutionContext.h"
43 #include "core/dom/MutationObserver.h" 44 #include "core/dom/MutationObserver.h"
44 #include "core/dom/SynchronousMutationNotifier.h" 45 #include "core/dom/SynchronousMutationNotifier.h"
45 #include "core/dom/SynchronousMutationObserver.h" 46 #include "core/dom/SynchronousMutationObserver.h"
46 #include "core/dom/Text.h" 47 #include "core/dom/Text.h"
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 } 1190 }
1190 1191
1191 // Return a Locale for the default locale if the argument is null or empty. 1192 // Return a Locale for the default locale if the argument is null or empty.
1192 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom); 1193 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom);
1193 1194
1194 AnimationClock& GetAnimationClock(); 1195 AnimationClock& GetAnimationClock();
1195 DocumentTimeline& Timeline() const { return *timeline_; } 1196 DocumentTimeline& Timeline() const { return *timeline_; }
1196 CompositorPendingAnimations& GetCompositorPendingAnimations() { 1197 CompositorPendingAnimations& GetCompositorPendingAnimations() {
1197 return *compositor_pending_animations_; 1198 return *compositor_pending_animations_;
1198 } 1199 }
1200 WorkletAnimationController& GetWorkletAnimationController() {
1201 return *worklet_animation_controller_;
1202 }
1199 1203
1200 void AddToTopLayer(Element*, const Element* before = nullptr); 1204 void AddToTopLayer(Element*, const Element* before = nullptr);
1201 void RemoveFromTopLayer(Element*); 1205 void RemoveFromTopLayer(Element*);
1202 const HeapVector<Member<Element>>& TopLayerElements() const { 1206 const HeapVector<Member<Element>>& TopLayerElements() const {
1203 return top_layer_elements_; 1207 return top_layer_elements_;
1204 } 1208 }
1205 HTMLDialogElement* ActiveModalDialog() const; 1209 HTMLDialogElement* ActiveModalDialog() const;
1206 1210
1207 // A non-null m_templateDocumentHost implies that |this| was created by 1211 // A non-null m_templateDocumentHost implies that |this| was created by
1208 // ensureTemplateDocument(). 1212 // ensureTemplateDocument().
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 TaskRunnerTimer<Document> element_data_cache_clear_timer_; 1643 TaskRunnerTimer<Document> element_data_cache_clear_timer_;
1640 1644
1641 Member<ElementDataCache> element_data_cache_; 1645 Member<ElementDataCache> element_data_cache_;
1642 1646
1643 using LocaleIdentifierToLocaleMap = 1647 using LocaleIdentifierToLocaleMap =
1644 HashMap<AtomicString, std::unique_ptr<Locale>>; 1648 HashMap<AtomicString, std::unique_ptr<Locale>>;
1645 LocaleIdentifierToLocaleMap locale_cache_; 1649 LocaleIdentifierToLocaleMap locale_cache_;
1646 1650
1647 Member<DocumentTimeline> timeline_; 1651 Member<DocumentTimeline> timeline_;
1648 Member<CompositorPendingAnimations> compositor_pending_animations_; 1652 Member<CompositorPendingAnimations> compositor_pending_animations_;
1653 Member<WorkletAnimationController> worklet_animation_controller_;
1649 1654
1650 Member<Document> template_document_; 1655 Member<Document> template_document_;
1651 Member<Document> template_document_host_; 1656 Member<Document> template_document_host_;
1652 1657
1653 TaskRunnerTimer<Document> did_associate_form_controls_timer_; 1658 TaskRunnerTimer<Document> did_associate_form_controls_timer_;
1654 1659
1655 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_; 1660 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_;
1656 1661
1657 DOMTimerCoordinator timers_; 1662 DOMTimerCoordinator timers_;
1658 1663
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1738 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1734 1739
1735 } // namespace blink 1740 } // namespace blink
1736 1741
1737 #ifndef NDEBUG 1742 #ifndef NDEBUG
1738 // Outside the WebCore namespace for ease of invocation from gdb. 1743 // Outside the WebCore namespace for ease of invocation from gdb.
1739 CORE_EXPORT void showLiveDocumentInstances(); 1744 CORE_EXPORT void showLiveDocumentInstances();
1740 #endif 1745 #endif
1741 1746
1742 #endif // Document_h 1747 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698