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

Unified Diff: Source/core/fetch/FontResource.h

Issue 63713002: Initiate webfont download right after style recalc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix zoom-zoom-coords.xhtml Created 7 years, 1 month 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: Source/core/fetch/FontResource.h
diff --git a/Source/core/fetch/FontResource.h b/Source/core/fetch/FontResource.h
index 4666820b8eab0501658572763f1093982304dd74..02eb7276a0ddb718a6ad6954a5b992144804248b 100644
--- a/Source/core/fetch/FontResource.h
+++ b/Source/core/fetch/FontResource.h
@@ -50,7 +50,6 @@ public:
virtual void didAddClient(ResourceClient*);
virtual void allClientsRemoved();
- void willUseFontData();
void beginLoadIfNeeded(ResourceFetcher* dl);
bool stillNeedsLoad() const { return !m_loadInitiated; }
@@ -70,22 +69,6 @@ private:
#if ENABLE(SVG_FONTS)
RefPtr<WebCore::SVGDocument> m_externalSVGDocument;
#endif
- class FontResourceHistograms {
- public:
- enum UsageType {
- StyledAndUsed,
- StyledButNotUsed,
- NotStyledButUsed,
- UsageTypeMax
- };
- FontResourceHistograms() : m_styledTime(0) { }
- ~FontResourceHistograms();
- void willUseFontData();
- void loadStarted();
- private:
- double m_styledTime;
- };
- FontResourceHistograms m_histograms;
friend class MemoryCache;
};

Powered by Google App Engine
This is Rietveld 408576698