Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2721273002: Merge 3026: Revert of Move the FontFaceCache stored in CSSFontSelector to be stored in Document. (p… (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 bool isSecureContext( 1257 bool isSecureContext(
1259 String& errorMessage, 1258 String& errorMessage,
1260 const SecureContextCheck = StandardSecureContextCheck) const override; 1259 const SecureContextCheck = StandardSecureContextCheck) const override;
1261 bool isSecureContext( 1260 bool isSecureContext(
1262 const SecureContextCheck = StandardSecureContextCheck) const override; 1261 const SecureContextCheck = StandardSecureContextCheck) const override;
1263 1262
1264 ClientHintsPreferences& clientHintsPreferences() { 1263 ClientHintsPreferences& clientHintsPreferences() {
1265 return m_clientHintsPreferences; 1264 return m_clientHintsPreferences;
1266 } 1265 }
1267 1266
1268 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
1269 void incrementFontFaceVersion() { m_fontFaceCache.incrementVersion(); }
1270 CanvasFontCache* canvasFontCache(); 1267 CanvasFontCache* canvasFontCache();
1271 1268
1272 // Used by unit tests so that all parsing will be main thread for 1269 // Used by unit tests so that all parsing will be main thread for
1273 // controlling parsing and chunking precisely. 1270 // controlling parsing and chunking precisely.
1274 static void setThreadedParsingEnabledForTesting(bool); 1271 static void setThreadedParsingEnabledForTesting(bool);
1275 static bool threadedParsingEnabledForTesting(); 1272 static bool threadedParsingEnabledForTesting();
1276 1273
1277 void incrementNodeCount() { m_nodeCount++; } 1274 void incrementNodeCount() { m_nodeCount++; }
1278 void decrementNodeCount() { 1275 void decrementNodeCount() {
1279 DCHECK_GT(m_nodeCount, 0); 1276 DCHECK_GT(m_nodeCount, 0);
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 DOMTimerCoordinator m_timers; 1648 DOMTimerCoordinator m_timers;
1652 1649
1653 bool m_hasViewportUnits; 1650 bool m_hasViewportUnits;
1654 1651
1655 ParserSynchronizationPolicy m_parserSyncPolicy; 1652 ParserSynchronizationPolicy m_parserSyncPolicy;
1656 1653
1657 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; 1654 HostsUsingFeatures::Value m_hostsUsingFeaturesValue;
1658 1655
1659 ClientHintsPreferences m_clientHintsPreferences; 1656 ClientHintsPreferences m_clientHintsPreferences;
1660 1657
1661 FontFaceCache m_fontFaceCache;
1662 Member<CanvasFontCache> m_canvasFontCache; 1658 Member<CanvasFontCache> m_canvasFontCache;
1663 1659
1664 Member<IntersectionObserverController> m_intersectionObserverController; 1660 Member<IntersectionObserverController> m_intersectionObserverController;
1665 Member<ResizeObserverController> m_resizeObserverController; 1661 Member<ResizeObserverController> m_resizeObserverController;
1666 1662
1667 int m_nodeCount; 1663 int m_nodeCount;
1668 1664
1669 bool m_mayContainV0Shadow = false; 1665 bool m_mayContainV0Shadow = false;
1670 1666
1671 Member<SnapCoordinator> m_snapCoordinator; 1667 Member<SnapCoordinator> m_snapCoordinator;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698