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

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

Issue 2550663002: Allow creating font data while FontResource is revalidating (Closed)
Patch Set: Allow to create font data while revalidating Created 4 years 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.cpp
diff --git a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
index 07f20aa542a8df54865c02452a38059e94766d67..a173712f09c120c2856741678795ae987a64fb92 100644
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
@@ -207,7 +207,7 @@ bool RemoteFontFaceSource::isLowPriorityLoadingAllowedForRemoteFont() const {
PassRefPtr<SimpleFontData> RemoteFontFaceSource::createFontData(
const FontDescription& fontDescription) {
- if (!isLoaded())
+ if (!isLoaded() && !m_font->hasCustomFontData())
return createLoadingFallbackFontData(fontDescription);
if (!m_font->ensureCustomFontData() || m_period == FailurePeriod)

Powered by Google App Engine
This is Rietveld 408576698