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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 class HTMLCollection; | 115 class HTMLCollection; |
116 class HTMLDialogElement; | 116 class HTMLDialogElement; |
117 class HTMLElement; | 117 class HTMLElement; |
118 class HTMLFrameOwnerElement; | 118 class HTMLFrameOwnerElement; |
119 class HTMLHeadElement; | 119 class HTMLHeadElement; |
120 class HTMLImportLoader; | 120 class HTMLImportLoader; |
121 class HTMLImportsController; | 121 class HTMLImportsController; |
122 class HTMLLinkElement; | 122 class HTMLLinkElement; |
123 class HTMLScriptElement; | 123 class HTMLScriptElement; |
124 class HitTestRequest; | 124 class HitTestRequest; |
| 125 class IdleRequestCallback; |
125 class InputDeviceCapabilities; | 126 class InputDeviceCapabilities; |
126 class LayoutPoint; | 127 class LayoutPoint; |
127 class LiveNodeListBase; | 128 class LiveNodeListBase; |
128 class Locale; | 129 class Locale; |
129 class LocalFrame; | 130 class LocalFrame; |
130 class Location; | 131 class Location; |
131 class MainThreadTaskRunner; | 132 class MainThreadTaskRunner; |
132 class MediaQueryListListener; | 133 class MediaQueryListListener; |
133 class MediaQueryMatcher; | 134 class MediaQueryMatcher; |
134 class NodeFilter; | 135 class NodeFilter; |
135 class NodeIterator; | 136 class NodeIterator; |
136 class NthIndexCache; | 137 class NthIndexCache; |
137 class Page; | 138 class Page; |
138 class PlatformMouseEvent; | 139 class PlatformMouseEvent; |
139 class ProcessingInstruction; | 140 class ProcessingInstruction; |
140 class QualifiedName; | 141 class QualifiedName; |
141 class Range; | 142 class Range; |
142 class LayoutView; | 143 class LayoutView; |
143 class ResourceFetcher; | 144 class ResourceFetcher; |
144 class SVGDocumentExtensions; | 145 class SVGDocumentExtensions; |
145 class SVGUseElement; | 146 class SVGUseElement; |
146 class ScriptRunner; | 147 class ScriptRunner; |
147 class ScriptableDocumentParser; | 148 class ScriptableDocumentParser; |
148 class ScriptedAnimationController; | 149 class ScriptedAnimationController; |
| 150 class ScriptedIdleTaskController; |
149 class SecurityOrigin; | 151 class SecurityOrigin; |
150 class SegmentedString; | 152 class SegmentedString; |
151 class SelectorQueryCache; | 153 class SelectorQueryCache; |
152 class SerializedScriptValue; | 154 class SerializedScriptValue; |
153 class Settings; | 155 class Settings; |
154 class StyleEngine; | 156 class StyleEngine; |
155 class StyleResolver; | 157 class StyleResolver; |
156 class StyleSheet; | 158 class StyleSheet; |
157 class StyleSheetList; | 159 class StyleSheetList; |
158 class Text; | 160 class Text; |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil
lBeMember<Touch>>&) const; | 909 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil
lBeMember<Touch>>&) const; |
908 | 910 |
909 const DocumentTiming& timing() const { return m_documentTiming; } | 911 const DocumentTiming& timing() const { return m_documentTiming; } |
910 | 912 |
911 bool shouldProcessFrameLifecycle(); | 913 bool shouldProcessFrameLifecycle(); |
912 | 914 |
913 int requestAnimationFrame(FrameRequestCallback*); | 915 int requestAnimationFrame(FrameRequestCallback*); |
914 void cancelAnimationFrame(int id); | 916 void cancelAnimationFrame(int id); |
915 void serviceScriptedAnimations(double monotonicAnimationStartTime); | 917 void serviceScriptedAnimations(double monotonicAnimationStartTime); |
916 | 918 |
| 919 int requestIdleCallback(IdleRequestCallback*, double timeoutMillis); |
| 920 void cancelIdleCallback(int id); |
| 921 |
917 EventTarget* errorEventTarget() final; | 922 EventTarget* errorEventTarget() final; |
918 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) final; | 923 void logExceptionToConsole(const String& errorMessage, int scriptId, const S
tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip
tCallStack>) final; |
919 | 924 |
920 void initDNSPrefetch(); | 925 void initDNSPrefetch(); |
921 | 926 |
922 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } | 927 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } |
923 | 928 |
924 TextAutosizer* textAutosizer(); | 929 TextAutosizer* textAutosizer(); |
925 | 930 |
926 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& localName,
const AtomicString& typeExtension, ExceptionState&); | 931 PassRefPtrWillBeRawPtr<Element> createElement(const AtomicString& localName,
const AtomicString& typeExtension, ExceptionState&); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 | 1063 |
1059 private: | 1064 private: |
1060 friend class IgnoreDestructiveWriteCountIncrementer; | 1065 friend class IgnoreDestructiveWriteCountIncrementer; |
1061 friend class NthIndexCache; | 1066 friend class NthIndexCache; |
1062 | 1067 |
1063 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. | 1068 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. |
1064 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. | 1069 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. |
1065 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. | 1070 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. |
1066 | 1071 |
1067 ScriptedAnimationController& ensureScriptedAnimationController(); | 1072 ScriptedAnimationController& ensureScriptedAnimationController(); |
| 1073 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); |
1068 SecurityContext& securityContext() final { return *this; } | 1074 SecurityContext& securityContext() final { return *this; } |
1069 EventQueue* eventQueue() const final; | 1075 EventQueue* eventQueue() const final; |
1070 | 1076 |
1071 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate. | 1077 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate. |
1072 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } | 1078 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } |
1073 | 1079 |
1074 bool shouldScheduleLayoutTreeUpdate() const; | 1080 bool shouldScheduleLayoutTreeUpdate() const; |
1075 void scheduleLayoutTreeUpdate(); | 1081 void scheduleLayoutTreeUpdate(); |
1076 | 1082 |
1077 bool needsFullLayoutTreeUpdate() const; | 1083 bool needsFullLayoutTreeUpdate() const; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 Length m_viewportDefaultMinWidth; | 1332 Length m_viewportDefaultMinWidth; |
1327 | 1333 |
1328 ReferrerPolicy m_referrerPolicy; | 1334 ReferrerPolicy m_referrerPolicy; |
1329 | 1335 |
1330 DocumentTiming m_documentTiming; | 1336 DocumentTiming m_documentTiming; |
1331 RefPtrWillBeMember<MediaQueryMatcher> m_mediaQueryMatcher; | 1337 RefPtrWillBeMember<MediaQueryMatcher> m_mediaQueryMatcher; |
1332 bool m_writeRecursionIsTooDeep; | 1338 bool m_writeRecursionIsTooDeep; |
1333 unsigned m_writeRecursionDepth; | 1339 unsigned m_writeRecursionDepth; |
1334 | 1340 |
1335 RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationControlle
r; | 1341 RefPtrWillBeMember<ScriptedAnimationController> m_scriptedAnimationControlle
r; |
| 1342 RefPtrWillBeMember<ScriptedIdleTaskController> m_scriptedIdleTaskController; |
1336 OwnPtrWillBeMember<MainThreadTaskRunner> m_taskRunner; | 1343 OwnPtrWillBeMember<MainThreadTaskRunner> m_taskRunner; |
1337 OwnPtrWillBeMember<TextAutosizer> m_textAutosizer; | 1344 OwnPtrWillBeMember<TextAutosizer> m_textAutosizer; |
1338 | 1345 |
1339 RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext; | 1346 RefPtrWillBeMember<CustomElementRegistrationContext> m_registrationContext; |
1340 RefPtrWillBeMember<CustomElementMicrotaskRunQueue> m_customElementMicrotaskR
unQueue; | 1347 RefPtrWillBeMember<CustomElementMicrotaskRunQueue> m_customElementMicrotaskR
unQueue; |
1341 | 1348 |
1342 void elementDataCacheClearTimerFired(Timer<Document>*); | 1349 void elementDataCacheClearTimerFired(Timer<Document>*); |
1343 Timer<Document> m_elementDataCacheClearTimer; | 1350 Timer<Document> m_elementDataCacheClearTimer; |
1344 | 1351 |
1345 OwnPtrWillBeMember<ElementDataCache> m_elementDataCache; | 1352 OwnPtrWillBeMember<ElementDataCache> m_elementDataCache; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1423 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1430 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1424 | 1431 |
1425 } // namespace blink | 1432 } // namespace blink |
1426 | 1433 |
1427 #ifndef NDEBUG | 1434 #ifndef NDEBUG |
1428 // Outside the WebCore namespace for ease of invocation from gdb. | 1435 // Outside the WebCore namespace for ease of invocation from gdb. |
1429 CORE_EXPORT void showLiveDocumentInstances(); | 1436 CORE_EXPORT void showLiveDocumentInstances(); |
1430 #endif | 1437 #endif |
1431 | 1438 |
1432 #endif // Document_h | 1439 #endif // Document_h |
OLD | NEW |