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

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

Issue 457273002: Webfonts should not block load event for more than one frame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/css/FontLoader.cpp ('k') | Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/FontResource.h
diff --git a/Source/core/fetch/FontResource.h b/Source/core/fetch/FontResource.h
index 103961117ced5f5435871e9f5374bcc924cf1745..439f98a476af11a4faea8774e75980eae6e06b64 100644
--- a/Source/core/fetch/FontResource.h
+++ b/Source/core/fetch/FontResource.h
@@ -58,6 +58,9 @@ public:
virtual bool stillNeedsLoad() const OVERRIDE { return !m_loadInitiated; }
bool exceedsFontLoadWaitLimit() const { return m_exceedsFontLoadWaitLimit; }
+ bool loadScheduled() const { return m_loadScheduled; }
+ void setLoadScheduled(bool loadScheduled) { m_loadScheduled = loadScheduled; }
+
void setCORSFailed() { m_corsFailed = true; }
bool isCORSFailed() const { return m_corsFailed; }
@@ -77,6 +80,7 @@ private:
void fontLoadWaitLimitCallback(Timer<FontResource>*);
OwnPtr<FontCustomPlatformData> m_fontData;
+ bool m_loadScheduled;
Nate Chapin 2014/08/14 17:33:06 Should m_loadScheduled and m_loadInitiated be merg
Kunihiko Sakamoto 2014/08/15 01:30:23 Done.
bool m_loadInitiated;
bool m_exceedsFontLoadWaitLimit;
bool m_corsFailed;
« no previous file with comments | « Source/core/css/FontLoader.cpp ('k') | Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698