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

Unified Diff: third_party/WebKit/Source/core/css/RemoteFontFaceSource.h

Issue 2390583002: [WIP] WebFonts cache-aware timeout adaption (Closed)
Patch Set: RemoteFontFaceSource cache-aware behavior, fix Created 4 years, 2 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/css/RemoteFontFaceSource.h
diff --git a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
index fb76fee8c0b7fca48575fa6c930769f05f8be3b1..481230b1a3ca4eae40c217b8a0cb3b97ec8bf416 100644
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h
@@ -44,6 +44,9 @@ class RemoteFontFaceSource final : public CSSFontFaceSource,
void notifyFinished(Resource*) override;
void fontLoadShortLimitExceeded(FontResource*) override;
void fontLoadLongLimitExceeded(FontResource*) override;
+
+ void willReloadAfterDiskCacheMiss(const FontResource*) override;
+
String debugName() const override { return "RemoteFontFaceSource"; }
bool isBlank() override { return m_period == BlockPeriod; }
@@ -101,9 +104,11 @@ class RemoteFontFaceSource final : public CSSFontFaceSource,
DataSource m_dataSource;
};
+ void didBecomeVisibleFallback();
void switchToSwapPeriod();
void switchToFailurePeriod();
bool shouldTriggerWebFontsIntervention();
+ bool shouldUseInvisibleFallback() const;
Member<FontResource> m_font;
Member<CSSFontSelector> m_fontSelector;

Powered by Google App Engine
This is Rietveld 408576698