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

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

Issue 2624893003: Move the FontFaceCache stored in CSSFontSelector to be stored in Document. (Closed)
Patch Set: Rebase Created 3 years, 10 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"
37 #include "core/dom/ContainerNode.h" 38 #include "core/dom/ContainerNode.h"
38 #include "core/dom/DocumentEncodingData.h" 39 #include "core/dom/DocumentEncodingData.h"
39 #include "core/dom/DocumentInit.h" 40 #include "core/dom/DocumentInit.h"
40 #include "core/dom/DocumentLifecycle.h" 41 #include "core/dom/DocumentLifecycle.h"
41 #include "core/dom/DocumentTiming.h" 42 #include "core/dom/DocumentTiming.h"
42 #include "core/dom/ExecutionContext.h" 43 #include "core/dom/ExecutionContext.h"
43 #include "core/dom/MutationObserver.h" 44 #include "core/dom/MutationObserver.h"
44 #include "core/dom/StyleReattachData.h" 45 #include "core/dom/StyleReattachData.h"
45 #include "core/dom/SynchronousMutationNotifier.h" 46 #include "core/dom/SynchronousMutationNotifier.h"
46 #include "core/dom/SynchronousMutationObserver.h" 47 #include "core/dom/SynchronousMutationObserver.h"
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 bool isSecureContext( 1261 bool isSecureContext(
1261 String& errorMessage, 1262 String& errorMessage,
1262 const SecureContextCheck = StandardSecureContextCheck) const override; 1263 const SecureContextCheck = StandardSecureContextCheck) const override;
1263 bool isSecureContext( 1264 bool isSecureContext(
1264 const SecureContextCheck = StandardSecureContextCheck) const override; 1265 const SecureContextCheck = StandardSecureContextCheck) const override;
1265 1266
1266 ClientHintsPreferences& clientHintsPreferences() { 1267 ClientHintsPreferences& clientHintsPreferences() {
1267 return m_clientHintsPreferences; 1268 return m_clientHintsPreferences;
1268 } 1269 }
1269 1270
1271 FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
1272 void incrementFontFaceVersion() { m_fontFaceCache.incrementVersion(); }
1270 CanvasFontCache* canvasFontCache(); 1273 CanvasFontCache* canvasFontCache();
1271 1274
1272 // Used by unit tests so that all parsing will be main thread for 1275 // Used by unit tests so that all parsing will be main thread for
1273 // controlling parsing and chunking precisely. 1276 // controlling parsing and chunking precisely.
1274 static void setThreadedParsingEnabledForTesting(bool); 1277 static void setThreadedParsingEnabledForTesting(bool);
1275 static bool threadedParsingEnabledForTesting(); 1278 static bool threadedParsingEnabledForTesting();
1276 1279
1277 void incrementNodeCount() { m_nodeCount++; } 1280 void incrementNodeCount() { m_nodeCount++; }
1278 void decrementNodeCount() { 1281 void decrementNodeCount() {
1279 DCHECK_GT(m_nodeCount, 0); 1282 DCHECK_GT(m_nodeCount, 0);
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1650 DOMTimerCoordinator m_timers; 1653 DOMTimerCoordinator m_timers;
1651 1654
1652 bool m_hasViewportUnits; 1655 bool m_hasViewportUnits;
1653 1656
1654 ParserSynchronizationPolicy m_parserSyncPolicy; 1657 ParserSynchronizationPolicy m_parserSyncPolicy;
1655 1658
1656 HostsUsingFeatures::Value m_hostsUsingFeaturesValue; 1659 HostsUsingFeatures::Value m_hostsUsingFeaturesValue;
1657 1660
1658 ClientHintsPreferences m_clientHintsPreferences; 1661 ClientHintsPreferences m_clientHintsPreferences;
1659 1662
1663 FontFaceCache m_fontFaceCache;
1660 Member<CanvasFontCache> m_canvasFontCache; 1664 Member<CanvasFontCache> m_canvasFontCache;
1661 1665
1662 Member<IntersectionObserverController> m_intersectionObserverController; 1666 Member<IntersectionObserverController> m_intersectionObserverController;
1663 Member<ResizeObserverController> m_resizeObserverController; 1667 Member<ResizeObserverController> m_resizeObserverController;
1664 1668
1665 int m_nodeCount; 1669 int m_nodeCount;
1666 1670
1667 bool m_mayContainV0Shadow = false; 1671 bool m_mayContainV0Shadow = false;
1668 1672
1669 Member<SnapCoordinator> m_snapCoordinator; 1673 Member<SnapCoordinator> m_snapCoordinator;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1728 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1725 1729
1726 } // namespace blink 1730 } // namespace blink
1727 1731
1728 #ifndef NDEBUG 1732 #ifndef NDEBUG
1729 // Outside the WebCore namespace for ease of invocation from gdb. 1733 // Outside the WebCore namespace for ease of invocation from gdb.
1730 CORE_EXPORT void showLiveDocumentInstances(); 1734 CORE_EXPORT void showLiveDocumentInstances();
1731 #endif 1735 #endif
1732 1736
1733 #endif // Document_h 1737 #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