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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 16 matching lines...) Expand all Loading... |
27 * | 27 * |
28 */ | 28 */ |
29 | 29 |
30 #ifndef Document_h | 30 #ifndef Document_h |
31 #define Document_h | 31 #define Document_h |
32 | 32 |
33 #include "bindings/core/v8/ExceptionState.h" | 33 #include "bindings/core/v8/ExceptionState.h" |
34 #include "bindings/core/v8/ScriptValue.h" | 34 #include "bindings/core/v8/ScriptValue.h" |
35 #include "bindings/core/v8/TraceWrapperMember.h" | 35 #include "bindings/core/v8/TraceWrapperMember.h" |
36 #include "core/CoreExport.h" | 36 #include "core/CoreExport.h" |
37 #include "core/css/FontFaceCache.h" | |
38 #include "core/dom/ContainerNode.h" | 37 #include "core/dom/ContainerNode.h" |
39 #include "core/dom/DocumentEncodingData.h" | 38 #include "core/dom/DocumentEncodingData.h" |
40 #include "core/dom/DocumentInit.h" | 39 #include "core/dom/DocumentInit.h" |
41 #include "core/dom/DocumentLifecycle.h" | 40 #include "core/dom/DocumentLifecycle.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/StyleReattachData.h" | 44 #include "core/dom/StyleReattachData.h" |
46 #include "core/dom/SynchronousMutationNotifier.h" | 45 #include "core/dom/SynchronousMutationNotifier.h" |
47 #include "core/dom/SynchronousMutationObserver.h" | 46 #include "core/dom/SynchronousMutationObserver.h" |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 bool isSecureContext( | 1260 bool isSecureContext( |
1262 String& errorMessage, | 1261 String& errorMessage, |
1263 const SecureContextCheck = StandardSecureContextCheck) const override; | 1262 const SecureContextCheck = StandardSecureContextCheck) const override; |
1264 bool isSecureContext( | 1263 bool isSecureContext( |
1265 const SecureContextCheck = StandardSecureContextCheck) const override; | 1264 const SecureContextCheck = StandardSecureContextCheck) const override; |
1266 | 1265 |
1267 ClientHintsPreferences& clientHintsPreferences() { | 1266 ClientHintsPreferences& clientHintsPreferences() { |
1268 return m_clientHintsPreferences; | 1267 return m_clientHintsPreferences; |
1269 } | 1268 } |
1270 | 1269 |
1271 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; } | |
1272 void incrementFontFaceVersion() { m_fontFaceCache.incrementVersion(); } | |
1273 CanvasFontCache* canvasFontCache(); | 1270 CanvasFontCache* canvasFontCache(); |
1274 | 1271 |
1275 // Used by unit tests so that all parsing will be main thread for | 1272 // Used by unit tests so that all parsing will be main thread for |
1276 // controlling parsing and chunking precisely. | 1273 // controlling parsing and chunking precisely. |
1277 static void setThreadedParsingEnabledForTesting(bool); | 1274 static void setThreadedParsingEnabledForTesting(bool); |
1278 static bool threadedParsingEnabledForTesting(); | 1275 static bool threadedParsingEnabledForTesting(); |
1279 | 1276 |
1280 void incrementNodeCount() { m_nodeCount++; } | 1277 void incrementNodeCount() { m_nodeCount++; } |
1281 void decrementNodeCount() { | 1278 void decrementNodeCount() { |
1282 DCHECK_GT(m_nodeCount, 0); | 1279 DCHECK_GT(m_nodeCount, 0); |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 DOMTimerCoordinator m_timers; | 1650 DOMTimerCoordinator m_timers; |
1654 | 1651 |
1655 bool m_hasViewportUnits; | 1652 bool m_hasViewportUnits; |
1656 | 1653 |
1657 ParserSynchronizationPolicy m_parserSyncPolicy; | 1654 ParserSynchronizationPolicy m_parserSyncPolicy; |
1658 | 1655 |
1659 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; | 1656 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; |
1660 | 1657 |
1661 ClientHintsPreferences m_clientHintsPreferences; | 1658 ClientHintsPreferences m_clientHintsPreferences; |
1662 | 1659 |
1663 FontFaceCache m_fontFaceCache; | |
1664 Member<CanvasFontCache> m_canvasFontCache; | 1660 Member<CanvasFontCache> m_canvasFontCache; |
1665 | 1661 |
1666 Member<IntersectionObserverController> m_intersectionObserverController; | 1662 Member<IntersectionObserverController> m_intersectionObserverController; |
1667 Member<ResizeObserverController> m_resizeObserverController; | 1663 Member<ResizeObserverController> m_resizeObserverController; |
1668 | 1664 |
1669 int m_nodeCount; | 1665 int m_nodeCount; |
1670 | 1666 |
1671 bool m_mayContainV0Shadow = false; | 1667 bool m_mayContainV0Shadow = false; |
1672 | 1668 |
1673 Member<SnapCoordinator> m_snapCoordinator; | 1669 Member<SnapCoordinator> m_snapCoordinator; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1728 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1729 | 1725 |
1730 } // namespace blink | 1726 } // namespace blink |
1731 | 1727 |
1732 #ifndef NDEBUG | 1728 #ifndef NDEBUG |
1733 // Outside the WebCore namespace for ease of invocation from gdb. | 1729 // Outside the WebCore namespace for ease of invocation from gdb. |
1734 CORE_EXPORT void showLiveDocumentInstances(); | 1730 CORE_EXPORT void showLiveDocumentInstances(); |
1735 #endif | 1731 #endif |
1736 | 1732 |
1737 #endif // Document_h | 1733 #endif // Document_h |
OLD | NEW |