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

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: Add a helper function Created 3 years, 11 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 2199e569be68ce6fe2e41e9e3397b15ae9f4a548..f0e7da0a6822dae21f0c518f971533beebbbefe0 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"
@@ -1256,6 +1257,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
@@ -1652,6 +1655,7 @@ class CORE_EXPORT Document : public ContainerNode,
ClientHintsPreferences m_clientHintsPreferences;
+ FontFaceCache m_fontFaceCache;
sashab 2017/01/11 04:20:35 What is FontFaceCache? Should this be a Member<>
meade_UTC10 2017/01/11 05:15:49 FontFaceCache is essentially a map of StyleRuleFon
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