Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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" | |
|
flackr
2017/07/19 19:23:48
We talked about moving this to modules hashed off
flackr
2017/07/21 18:14:25
Actually, on further thought, we will eventually w
| |
| 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 Loading... | |
| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1641 TaskRunnerTimer<Document> element_data_cache_clear_timer_; | 1645 TaskRunnerTimer<Document> element_data_cache_clear_timer_; |
| 1642 | 1646 |
| 1643 Member<ElementDataCache> element_data_cache_; | 1647 Member<ElementDataCache> element_data_cache_; |
| 1644 | 1648 |
| 1645 using LocaleIdentifierToLocaleMap = | 1649 using LocaleIdentifierToLocaleMap = |
| 1646 HashMap<AtomicString, std::unique_ptr<Locale>>; | 1650 HashMap<AtomicString, std::unique_ptr<Locale>>; |
| 1647 LocaleIdentifierToLocaleMap locale_cache_; | 1651 LocaleIdentifierToLocaleMap locale_cache_; |
| 1648 | 1652 |
| 1649 Member<DocumentTimeline> timeline_; | 1653 Member<DocumentTimeline> timeline_; |
| 1650 Member<CompositorPendingAnimations> compositor_pending_animations_; | 1654 Member<CompositorPendingAnimations> compositor_pending_animations_; |
| 1655 Member<WorkletAnimationController> worklet_animation_controller_; | |
| 1651 | 1656 |
| 1652 Member<Document> template_document_; | 1657 Member<Document> template_document_; |
| 1653 Member<Document> template_document_host_; | 1658 Member<Document> template_document_host_; |
| 1654 | 1659 |
| 1655 TaskRunnerTimer<Document> did_associate_form_controls_timer_; | 1660 TaskRunnerTimer<Document> did_associate_form_controls_timer_; |
| 1656 | 1661 |
| 1657 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_; | 1662 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_; |
| 1658 | 1663 |
| 1659 DOMTimerCoordinator timers_; | 1664 DOMTimerCoordinator timers_; |
| 1660 | 1665 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1735 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1740 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1736 | 1741 |
| 1737 } // namespace blink | 1742 } // namespace blink |
| 1738 | 1743 |
| 1739 #ifndef NDEBUG | 1744 #ifndef NDEBUG |
| 1740 // Outside the WebCore namespace for ease of invocation from gdb. | 1745 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1741 CORE_EXPORT void showLiveDocumentInstances(); | 1746 CORE_EXPORT void showLiveDocumentInstances(); |
| 1742 #endif | 1747 #endif |
| 1743 | 1748 |
| 1744 #endif // Document_h | 1749 #endif // Document_h |
| OLD | NEW |