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