| 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 19 matching lines...) Expand all Loading... |
| 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 <string> | 34 #include <string> |
| 35 #include <utility> | 35 #include <utility> |
| 36 | 36 |
| 37 #include "bindings/core/v8/ExceptionState.h" | 37 #include "bindings/core/v8/ExceptionState.h" |
| 38 #include "bindings/core/v8/ScriptValue.h" | 38 #include "bindings/core/v8/ScriptValue.h" |
| 39 #include "core/CoreExport.h" | 39 #include "core/CoreExport.h" |
| 40 #include "core/animation/WorkletAnimationController.h" |
| 40 #include "core/dom/ContainerNode.h" | 41 #include "core/dom/ContainerNode.h" |
| 41 #include "core/dom/DocumentEncodingData.h" | 42 #include "core/dom/DocumentEncodingData.h" |
| 42 #include "core/dom/DocumentInit.h" | 43 #include "core/dom/DocumentInit.h" |
| 43 #include "core/dom/DocumentLifecycle.h" | 44 #include "core/dom/DocumentLifecycle.h" |
| 44 #include "core/dom/DocumentShutdownNotifier.h" | 45 #include "core/dom/DocumentShutdownNotifier.h" |
| 45 #include "core/dom/DocumentShutdownObserver.h" | 46 #include "core/dom/DocumentShutdownObserver.h" |
| 46 #include "core/dom/DocumentTiming.h" | 47 #include "core/dom/DocumentTiming.h" |
| 47 #include "core/dom/ExecutionContext.h" | 48 #include "core/dom/ExecutionContext.h" |
| 48 #include "core/dom/MutationObserver.h" | 49 #include "core/dom/MutationObserver.h" |
| 49 #include "core/dom/ScriptedIdleTaskController.h" | 50 #include "core/dom/ScriptedIdleTaskController.h" |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 bool InStyleRecalc() const { | 1216 bool InStyleRecalc() const { |
| 1216 return lifecycle_.GetState() == DocumentLifecycle::kInStyleRecalc; | 1217 return lifecycle_.GetState() == DocumentLifecycle::kInStyleRecalc; |
| 1217 } | 1218 } |
| 1218 | 1219 |
| 1219 // Return a Locale for the default locale if the argument is null or empty. | 1220 // Return a Locale for the default locale if the argument is null or empty. |
| 1220 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom); | 1221 Locale& GetCachedLocale(const AtomicString& locale = g_null_atom); |
| 1221 | 1222 |
| 1222 AnimationClock& GetAnimationClock(); | 1223 AnimationClock& GetAnimationClock(); |
| 1223 DocumentTimeline& Timeline() const { return *timeline_; } | 1224 DocumentTimeline& Timeline() const { return *timeline_; } |
| 1224 PendingAnimations& GetPendingAnimations() { return *pending_animations_; } | 1225 PendingAnimations& GetPendingAnimations() { return *pending_animations_; } |
| 1226 WorkletAnimationController& GetWorkletAnimationController() { |
| 1227 return *worklet_animation_controller_; |
| 1228 } |
| 1225 | 1229 |
| 1226 void AddToTopLayer(Element*, const Element* before = nullptr); | 1230 void AddToTopLayer(Element*, const Element* before = nullptr); |
| 1227 void RemoveFromTopLayer(Element*); | 1231 void RemoveFromTopLayer(Element*); |
| 1228 const HeapVector<Member<Element>>& TopLayerElements() const { | 1232 const HeapVector<Member<Element>>& TopLayerElements() const { |
| 1229 return top_layer_elements_; | 1233 return top_layer_elements_; |
| 1230 } | 1234 } |
| 1231 HTMLDialogElement* ActiveModalDialog() const; | 1235 HTMLDialogElement* ActiveModalDialog() const; |
| 1232 | 1236 |
| 1233 // A non-null m_templateDocumentHost implies that |this| was created by | 1237 // A non-null m_templateDocumentHost implies that |this| was created by |
| 1234 // ensureTemplateDocument(). | 1238 // ensureTemplateDocument(). |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1681 TaskRunnerTimer<Document> element_data_cache_clear_timer_; | 1685 TaskRunnerTimer<Document> element_data_cache_clear_timer_; |
| 1682 | 1686 |
| 1683 Member<ElementDataCache> element_data_cache_; | 1687 Member<ElementDataCache> element_data_cache_; |
| 1684 | 1688 |
| 1685 using LocaleIdentifierToLocaleMap = | 1689 using LocaleIdentifierToLocaleMap = |
| 1686 HashMap<AtomicString, std::unique_ptr<Locale>>; | 1690 HashMap<AtomicString, std::unique_ptr<Locale>>; |
| 1687 LocaleIdentifierToLocaleMap locale_cache_; | 1691 LocaleIdentifierToLocaleMap locale_cache_; |
| 1688 | 1692 |
| 1689 Member<DocumentTimeline> timeline_; | 1693 Member<DocumentTimeline> timeline_; |
| 1690 Member<PendingAnimations> pending_animations_; | 1694 Member<PendingAnimations> pending_animations_; |
| 1695 Member<WorkletAnimationController> worklet_animation_controller_; |
| 1691 | 1696 |
| 1692 Member<Document> template_document_; | 1697 Member<Document> template_document_; |
| 1693 Member<Document> template_document_host_; | 1698 Member<Document> template_document_host_; |
| 1694 | 1699 |
| 1695 TaskRunnerTimer<Document> did_associate_form_controls_timer_; | 1700 TaskRunnerTimer<Document> did_associate_form_controls_timer_; |
| 1696 | 1701 |
| 1697 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_; | 1702 HeapHashSet<Member<SVGUseElement>> use_elements_needing_update_; |
| 1698 | 1703 |
| 1699 DOMTimerCoordinator timers_; | 1704 DOMTimerCoordinator timers_; |
| 1700 | 1705 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1788 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1784 | 1789 |
| 1785 } // namespace blink | 1790 } // namespace blink |
| 1786 | 1791 |
| 1787 #ifndef NDEBUG | 1792 #ifndef NDEBUG |
| 1788 // Outside the WebCore namespace for ease of invocation from gdb. | 1793 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1789 CORE_EXPORT void showLiveDocumentInstances(); | 1794 CORE_EXPORT void showLiveDocumentInstances(); |
| 1790 #endif | 1795 #endif |
| 1791 | 1796 |
| 1792 #endif // Document_h | 1797 #endif // Document_h |
| OLD | NEW |