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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index fcfb3ff26bf8ce2963edfe47902cd6ecdae24555..5323796bb48bcce84dcce2d5b309399a0c2b2ccb 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -34,6 +34,7 @@
#include "bindings/core/v8/ScriptValue.h"
#include "bindings/core/v8/TraceWrapperMember.h"
#include "core/CoreExport.h"
+#include "core/css/FontFaceCache.h"
#include "core/dom/ContainerNode.h"
#include "core/dom/DocumentEncodingData.h"
#include "core/dom/DocumentInit.h"
@@ -1267,6 +1268,8 @@ class CORE_EXPORT Document : public ContainerNode,
return m_clientHintsPreferences;
}
+ FontFaceCache* fontFaceCache() { return &m_fontFaceCache; }
+ void incrementFontFaceVersion() { m_fontFaceCache.incrementVersion(); }
CanvasFontCache* canvasFontCache();
// Used by unit tests so that all parsing will be main thread for
@@ -1657,6 +1660,7 @@ class CORE_EXPORT Document : public ContainerNode,
ClientHintsPreferences m_clientHintsPreferences;
+ FontFaceCache m_fontFaceCache;
Member<CanvasFontCache> m_canvasFontCache;
Member<IntersectionObserverController> m_intersectionObserverController;
« 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