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 r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 14 matching lines...) Expand all Loading... |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #ifndef Document_h | 28 #ifndef Document_h |
29 #define Document_h | 29 #define Document_h |
30 | 30 |
31 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 31 #include "bindings/core/v8/ExceptionStatePlaceholder.h" |
32 #include "bindings/core/v8/ScriptValue.h" | 32 #include "bindings/core/v8/ScriptValue.h" |
33 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
34 #include "core/animation/AnimationClock.h" | 34 #include "core/animation/AnimationClock.h" |
35 #include "core/animation/CompositorPendingAnimations.h" | |
36 #include "core/dom/ContainerNode.h" | 35 #include "core/dom/ContainerNode.h" |
37 #include "core/dom/DocumentEncodingData.h" | 36 #include "core/dom/DocumentEncodingData.h" |
38 #include "core/dom/DocumentInit.h" | 37 #include "core/dom/DocumentInit.h" |
39 #include "core/dom/DocumentLifecycle.h" | 38 #include "core/dom/DocumentLifecycle.h" |
40 #include "core/dom/DocumentLifecycleNotifier.h" | 39 #include "core/dom/DocumentLifecycleNotifier.h" |
41 #include "core/dom/DocumentLifecycleObserver.h" | 40 #include "core/dom/DocumentLifecycleObserver.h" |
42 #include "core/dom/DocumentTiming.h" | 41 #include "core/dom/DocumentTiming.h" |
43 #include "core/dom/ExecutionContext.h" | 42 #include "core/dom/ExecutionContext.h" |
44 #include "core/dom/MutationObserver.h" | 43 #include "core/dom/MutationObserver.h" |
45 #include "core/dom/TextLinkColors.h" | 44 #include "core/dom/TextLinkColors.h" |
(...skipping 12 matching lines...) Expand all Loading... |
58 #include "platform/Length.h" | 57 #include "platform/Length.h" |
59 #include "platform/Timer.h" | 58 #include "platform/Timer.h" |
60 #include "platform/heap/Handle.h" | 59 #include "platform/heap/Handle.h" |
61 #include "platform/weborigin/KURL.h" | 60 #include "platform/weborigin/KURL.h" |
62 #include "platform/weborigin/ReferrerPolicy.h" | 61 #include "platform/weborigin/ReferrerPolicy.h" |
63 #include "public/platform/WebFocusType.h" | 62 #include "public/platform/WebFocusType.h" |
64 #include "wtf/HashSet.h" | 63 #include "wtf/HashSet.h" |
65 #include "wtf/OwnPtr.h" | 64 #include "wtf/OwnPtr.h" |
66 #include "wtf/PassOwnPtr.h" | 65 #include "wtf/PassOwnPtr.h" |
67 #include "wtf/PassRefPtr.h" | 66 #include "wtf/PassRefPtr.h" |
68 #include "wtf/WeakPtr.h" | |
69 | 67 |
70 namespace blink { | 68 namespace blink { |
71 | 69 |
72 class AnimationTimeline; | 70 class AnimationTimeline; |
73 class AXObjectCache; | 71 class AXObjectCache; |
74 class Attr; | 72 class Attr; |
75 class CDATASection; | 73 class CDATASection; |
76 class CSSStyleDeclaration; | 74 class CSSStyleDeclaration; |
77 class CSSStyleSheet; | 75 class CSSStyleSheet; |
78 class CancellableTaskFactory; | 76 class CancellableTaskFactory; |
79 class CanvasFontCache; | 77 class CanvasFontCache; |
80 class CanvasRenderingContext2D; | 78 class CanvasRenderingContext2D; |
81 class CanvasRenderingContext2DOrWebGLRenderingContext; | 79 class CanvasRenderingContext2DOrWebGLRenderingContext; |
82 class ChromeClient; | 80 class ChromeClient; |
| 81 class CompositorPendingAnimations; |
83 class Comment; | 82 class Comment; |
84 class ConsoleMessage; | 83 class ConsoleMessage; |
85 class ContextFeatures; | 84 class ContextFeatures; |
86 class CustomElementMicrotaskRunQueue; | 85 class CustomElementMicrotaskRunQueue; |
87 class CustomElementRegistrationContext; | 86 class CustomElementRegistrationContext; |
88 class DOMImplementation; | 87 class DOMImplementation; |
89 class DOMWindow; | 88 class DOMWindow; |
90 class DocumentFragment; | 89 class DocumentFragment; |
91 class DocumentLoader; | 90 class DocumentLoader; |
92 class DocumentMarkerController; | 91 class DocumentMarkerController; |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } | 675 bool hasListenerType(ListenerType listenerType) const { return (m_listenerTy
pes & listenerType); } |
677 void addListenerTypeIfNeeded(const AtomicString& eventType); | 676 void addListenerTypeIfNeeded(const AtomicString& eventType); |
678 | 677 |
679 bool hasMutationObserversOfType(MutationObserver::MutationType type) const | 678 bool hasMutationObserversOfType(MutationObserver::MutationType type) const |
680 { | 679 { |
681 return m_mutationObserverTypes & type; | 680 return m_mutationObserverTypes & type; |
682 } | 681 } |
683 bool hasMutationObservers() const { return m_mutationObserverTypes; } | 682 bool hasMutationObservers() const { return m_mutationObserverTypes; } |
684 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs
erverTypes |= types; } | 683 void addMutationObserverTypes(MutationObserverOptions types) { m_mutationObs
erverTypes |= types; } |
685 | 684 |
686 RawPtr<Document> createWeakPtr(); | |
687 | |
688 IntersectionObserverController* intersectionObserverController(); | 685 IntersectionObserverController* intersectionObserverController(); |
689 IntersectionObserverController& ensureIntersectionObserverController(); | 686 IntersectionObserverController& ensureIntersectionObserverController(); |
690 NodeIntersectionObserverData& ensureIntersectionObserverData(); | 687 NodeIntersectionObserverData& ensureIntersectionObserverData(); |
691 | 688 |
692 void updateViewportDescription(); | 689 void updateViewportDescription(); |
693 void processReferrerPolicy(const String& policy); | 690 void processReferrerPolicy(const String& policy); |
694 | 691 |
695 // Returns the owning element in the parent document. | 692 // Returns the owning element in the parent document. |
696 // Returns nullptr if this is the top level document. | 693 // Returns nullptr if this is the top level document. |
697 HTMLFrameOwnerElement* ownerElement() const; | 694 HTMLFrameOwnerElement* ownerElement() const; |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 | 1317 |
1321 DocumentClassFlags m_documentClasses; | 1318 DocumentClassFlags m_documentClasses; |
1322 | 1319 |
1323 bool m_isViewSource; | 1320 bool m_isViewSource; |
1324 bool m_sawElementsInKnownNamespaces; | 1321 bool m_sawElementsInKnownNamespaces; |
1325 bool m_isSrcdocDocument; | 1322 bool m_isSrcdocDocument; |
1326 bool m_isMobileDocument; | 1323 bool m_isMobileDocument; |
1327 | 1324 |
1328 LayoutView* m_layoutView; | 1325 LayoutView* m_layoutView; |
1329 | 1326 |
1330 #if !ENABLE(OILPAN) | |
1331 WeakPtrFactory<Document> m_weakFactory; | |
1332 #endif | |
1333 WeakMember<Document> m_contextDocument; | 1327 WeakMember<Document> m_contextDocument; |
1334 | 1328 |
1335 bool m_hasFullscreenSupplement; // For early return in Fullscreen::fromIfExi
sts() | 1329 bool m_hasFullscreenSupplement; // For early return in Fullscreen::fromIfExi
sts() |
1336 | 1330 |
1337 HeapVector<Member<Element>> m_topLayerElements; | 1331 HeapVector<Member<Element>> m_topLayerElements; |
1338 | 1332 |
1339 int m_loadEventDelayCount; | 1333 int m_loadEventDelayCount; |
1340 Timer<Document> m_loadEventDelayTimer; | 1334 Timer<Document> m_loadEventDelayTimer; |
1341 Timer<Document> m_pluginLoadingTimer; | 1335 Timer<Document> m_pluginLoadingTimer; |
1342 | 1336 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1444 | 1438 |
1445 } // namespace blink | 1439 } // namespace blink |
1446 | 1440 |
1447 #ifndef NDEBUG | 1441 #ifndef NDEBUG |
1448 // Outside the WebCore namespace for ease of invocation from gdb. | 1442 // Outside the WebCore namespace for ease of invocation from gdb. |
1449 CORE_EXPORT void showLiveDocumentInstances(); | 1443 CORE_EXPORT void showLiveDocumentInstances(); |
1450 #endif | 1444 #endif |
1451 | 1445 |
1452 #endif // Document_h | 1446 #endif // Document_h |
OLD | NEW |