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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 class SVGUseElement; | 150 class SVGUseElement; |
151 class ScriptRunner; | 151 class ScriptRunner; |
152 class ScriptableDocumentParser; | 152 class ScriptableDocumentParser; |
153 class ScriptedAnimationController; | 153 class ScriptedAnimationController; |
154 class ScriptedIdleTaskController; | 154 class ScriptedIdleTaskController; |
155 class SecurityOrigin; | 155 class SecurityOrigin; |
156 class SegmentedString; | 156 class SegmentedString; |
157 class SelectorQueryCache; | 157 class SelectorQueryCache; |
158 class SerializedScriptValue; | 158 class SerializedScriptValue; |
159 class Settings; | 159 class Settings; |
| 160 class SnapCoordinator; |
160 class StyleEngine; | 161 class StyleEngine; |
161 class StyleResolver; | 162 class StyleResolver; |
162 class StyleSheet; | 163 class StyleSheet; |
163 class StyleSheetList; | 164 class StyleSheetList; |
164 class Text; | 165 class Text; |
165 class TextAutosizer; | 166 class TextAutosizer; |
166 class Touch; | 167 class Touch; |
167 class TouchList; | 168 class TouchList; |
168 class TransformSource; | 169 class TransformSource; |
169 class TreeWalker; | 170 class TreeWalker; |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 static bool threadedParsingEnabledForTesting(); | 1045 static bool threadedParsingEnabledForTesting(); |
1045 | 1046 |
1046 void incrementNodeCount() { m_nodeCount++; } | 1047 void incrementNodeCount() { m_nodeCount++; } |
1047 void decrementNodeCount() | 1048 void decrementNodeCount() |
1048 { | 1049 { |
1049 DCHECK_GT(m_nodeCount, 0); | 1050 DCHECK_GT(m_nodeCount, 0); |
1050 m_nodeCount--; | 1051 m_nodeCount--; |
1051 } | 1052 } |
1052 int nodeCount() const { return m_nodeCount; } | 1053 int nodeCount() const { return m_nodeCount; } |
1053 | 1054 |
| 1055 SnapCoordinator* snapCoordinator(); |
| 1056 |
1054 using WeakDocumentSet = HeapHashSet<WeakMember<Document>>; | 1057 using WeakDocumentSet = HeapHashSet<WeakMember<Document>>; |
1055 static WeakDocumentSet& liveDocumentSet(); | 1058 static WeakDocumentSet& liveDocumentSet(); |
1056 | 1059 |
1057 WebTaskRunner* loadingTaskRunner() const; | 1060 WebTaskRunner* loadingTaskRunner() const; |
1058 WebTaskRunner* timerTaskRunner() const; | 1061 WebTaskRunner* timerTaskRunner() const; |
1059 | 1062 |
1060 void enforceStrictMixedContentChecking(); | 1063 void enforceStrictMixedContentChecking(); |
1061 | 1064 |
1062 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } | 1065 bool mayContainV0Shadow() const { return m_mayContainV0Shadow; } |
1063 | 1066 |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 ClientHintsPreferences m_clientHintsPreferences; | 1385 ClientHintsPreferences m_clientHintsPreferences; |
1383 | 1386 |
1384 Member<CanvasFontCache> m_canvasFontCache; | 1387 Member<CanvasFontCache> m_canvasFontCache; |
1385 | 1388 |
1386 Member<IntersectionObserverController> m_intersectionObserverController; | 1389 Member<IntersectionObserverController> m_intersectionObserverController; |
1387 Member<NodeIntersectionObserverData> m_intersectionObserverData; | 1390 Member<NodeIntersectionObserverData> m_intersectionObserverData; |
1388 | 1391 |
1389 int m_nodeCount; | 1392 int m_nodeCount; |
1390 | 1393 |
1391 bool m_mayContainV0Shadow = false; | 1394 bool m_mayContainV0Shadow = false; |
| 1395 |
| 1396 Member<SnapCoordinator> m_snapCoordinator; |
1392 }; | 1397 }; |
1393 | 1398 |
1394 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; | 1399 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Document>; |
1395 | 1400 |
1396 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) const | 1401 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) const |
1397 { | 1402 { |
1398 // The different (legacy) meta tags have different priorities based on the t
ype | 1403 // The different (legacy) meta tags have different priorities based on the t
ype |
1399 // regardless of which order they appear in the DOM. The priority is given b
y the | 1404 // regardless of which order they appear in the DOM. The priority is given b
y the |
1400 // ViewportDescription::Type enum. | 1405 // ViewportDescription::Type enum. |
1401 return origin >= m_legacyViewportDescription.type; | 1406 return origin >= m_legacyViewportDescription.type; |
(...skipping 29 matching lines...) Expand all Loading... |
1431 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1436 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1432 | 1437 |
1433 } // namespace blink | 1438 } // namespace blink |
1434 | 1439 |
1435 #ifndef NDEBUG | 1440 #ifndef NDEBUG |
1436 // Outside the WebCore namespace for ease of invocation from gdb. | 1441 // Outside the WebCore namespace for ease of invocation from gdb. |
1437 CORE_EXPORT void showLiveDocumentInstances(); | 1442 CORE_EXPORT void showLiveDocumentInstances(); |
1438 #endif | 1443 #endif |
1439 | 1444 |
1440 #endif // Document_h | 1445 #endif // Document_h |
OLD | NEW |