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

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

Issue 1429713004: Implement CSS font-display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: failure does not mean loaded Created 5 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: third_party/WebKit/Source/core/fetch/FontResource.h
diff --git a/third_party/WebKit/Source/core/fetch/FontResource.h b/third_party/WebKit/Source/core/fetch/FontResource.h
index 0483dec2272f1fa62ea407ca152e5be3f9dd7b70..6e6db47bdf27d8f0b166f23ea9cf9c92aea5c9f5 100644
--- a/third_party/WebKit/Source/core/fetch/FontResource.h
+++ b/third_party/WebKit/Source/core/fetch/FontResource.h
@@ -53,7 +53,6 @@ public:
void allClientsRemoved() override;
void beginLoadIfNeeded(ResourceFetcher* dl);
bool stillNeedsLoad() const override { return m_state != LoadInitiated; }
- bool exceedsFontLoadWaitLimit() const { return m_exceedsFontLoadWaitLimit; }
bool loadScheduled() const { return m_state != Unloaded; }
void didScheduleLoad();
@@ -83,16 +82,17 @@ private:
FontResource(const ResourceRequest&);
void checkNotify() override;
- void fontLoadWaitLimitCallback(Timer<FontResource>*);
+ void fontLoadShortLimitCallback(Timer<FontResource>*);
+ void fontLoadLongLimitCallback(Timer<FontResource>*);
enum State { Unloaded, LoadScheduled, LoadInitiated };
OwnPtr<FontCustomPlatformData> m_fontData;
String m_otsParsingMessage;
State m_state;
- bool m_exceedsFontLoadWaitLimit;
bool m_corsFailed;
- Timer<FontResource> m_fontLoadWaitLimitTimer;
+ Timer<FontResource> m_fontLoadShortLimitTimer;
+ Timer<FontResource> m_fontLoadLongLimitTimer;
friend class MemoryCache;
};
@@ -106,7 +106,8 @@ public:
ResourceClientType resourceClientType() const final { return expectedType(); }
virtual void fontLoaded(FontResource*) {}
virtual void didStartFontLoad(FontResource*) {}
- virtual void fontLoadWaitLimitExceeded(FontResource*) {}
+ virtual void fontLoadShortLimitExceeded(FontResource*) {}
+ virtual void fontLoadLongLimitExceeded(FontResource*) {}
};
}
« no previous file with comments | « third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ('k') | third_party/WebKit/Source/core/fetch/FontResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698