| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 class SVGUseElement; | 148 class SVGUseElement; |
| 149 class ScriptRunner; | 149 class ScriptRunner; |
| 150 class ScriptableDocumentParser; | 150 class ScriptableDocumentParser; |
| 151 class ScriptedAnimationController; | 151 class ScriptedAnimationController; |
| 152 class ScriptedIdleTaskController; | 152 class ScriptedIdleTaskController; |
| 153 class SecurityOrigin; | 153 class SecurityOrigin; |
| 154 class SegmentedString; | 154 class SegmentedString; |
| 155 class SelectorQueryCache; | 155 class SelectorQueryCache; |
| 156 class SerializedScriptValue; | 156 class SerializedScriptValue; |
| 157 class Settings; | 157 class Settings; |
| 158 class SnapCoordinator; |
| 158 class StyleEngine; | 159 class StyleEngine; |
| 159 class StyleResolver; | 160 class StyleResolver; |
| 160 class StyleSheet; | 161 class StyleSheet; |
| 161 class StyleSheetList; | 162 class StyleSheetList; |
| 162 class Text; | 163 class Text; |
| 163 class TextAutosizer; | 164 class TextAutosizer; |
| 164 class Touch; | 165 class Touch; |
| 165 class TouchList; | 166 class TouchList; |
| 166 class TransformSource; | 167 class TransformSource; |
| 167 class TreeWalker; | 168 class TreeWalker; |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 static bool threadedParsingEnabledForTesting(); | 1041 static bool threadedParsingEnabledForTesting(); |
| 1041 | 1042 |
| 1042 void incrementNodeCount() { m_nodeCount++; } | 1043 void incrementNodeCount() { m_nodeCount++; } |
| 1043 void decrementNodeCount() | 1044 void decrementNodeCount() |
| 1044 { | 1045 { |
| 1045 ASSERT(m_nodeCount > 0); | 1046 ASSERT(m_nodeCount > 0); |
| 1046 m_nodeCount--; | 1047 m_nodeCount--; |
| 1047 } | 1048 } |
| 1048 int nodeCount() const { return m_nodeCount; } | 1049 int nodeCount() const { return m_nodeCount; } |
| 1049 | 1050 |
| 1051 SnapCoordinator* snapCoordinator(); |
| 1052 |
| 1050 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>; | 1053 using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>; |
| 1051 static WeakDocumentSet& liveDocumentSet(); | 1054 static WeakDocumentSet& liveDocumentSet(); |
| 1052 | 1055 |
| 1053 WebTaskRunner* loadingTaskRunner() const; | 1056 WebTaskRunner* loadingTaskRunner() const; |
| 1054 | 1057 |
| 1055 protected: | 1058 protected: |
| 1056 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1059 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
| 1057 | 1060 |
| 1058 void didUpdateSecurityOrigin() final; | 1061 void didUpdateSecurityOrigin() final; |
| 1059 | 1062 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1389 | 1392 |
| 1390 ParserSynchronizationPolicy m_parserSyncPolicy; | 1393 ParserSynchronizationPolicy m_parserSyncPolicy; |
| 1391 | 1394 |
| 1392 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; | 1395 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; |
| 1393 | 1396 |
| 1394 ClientHintsPreferences m_clientHintsPreferences; | 1397 ClientHintsPreferences m_clientHintsPreferences; |
| 1395 | 1398 |
| 1396 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; | 1399 PersistentWillBeMember<CanvasFontCache> m_canvasFontCache; |
| 1397 | 1400 |
| 1398 int m_nodeCount; | 1401 int m_nodeCount; |
| 1402 |
| 1403 OwnPtrWillBeMember<SnapCoordinator> m_snapCoordinator; |
| 1399 }; | 1404 }; |
| 1400 | 1405 |
| 1401 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document>
; | 1406 extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document>
; |
| 1402 | 1407 |
| 1403 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) | 1408 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) |
| 1404 { | 1409 { |
| 1405 // The different (legacy) meta tags have different priorities based on the t
ype | 1410 // The different (legacy) meta tags have different priorities based on the t
ype |
| 1406 // regardless of which order they appear in the DOM. The priority is given b
y the | 1411 // regardless of which order they appear in the DOM. The priority is given b
y the |
| 1407 // ViewportDescription::Type enum. | 1412 // ViewportDescription::Type enum. |
| 1408 return origin >= m_legacyViewportDescription.type; | 1413 return origin >= m_legacyViewportDescription.type; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1438 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1443 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1439 | 1444 |
| 1440 } // namespace blink | 1445 } // namespace blink |
| 1441 | 1446 |
| 1442 #ifndef NDEBUG | 1447 #ifndef NDEBUG |
| 1443 // Outside the WebCore namespace for ease of invocation from gdb. | 1448 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1444 CORE_EXPORT void showLiveDocumentInstances(); | 1449 CORE_EXPORT void showLiveDocumentInstances(); |
| 1445 #endif | 1450 #endif |
| 1446 | 1451 |
| 1447 #endif // Document_h | 1452 #endif // Document_h |
| OLD | NEW |