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

Unified Diff: Source/core/css/CSSFontFaceSource.cpp

Issue 63713002: Initiate webfont download right after style recalc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/css/CSSFontFaceSource.cpp
diff --git a/Source/core/css/CSSFontFaceSource.cpp b/Source/core/css/CSSFontFaceSource.cpp
index ee9c288c8c45a47f95e8e13fdbcd57cc051a3bed..dd051974632febfb65c13ee5a0ecd73a837015cd 100644
--- a/Source/core/css/CSSFontFaceSource.cpp
+++ b/Source/core/css/CSSFontFaceSource.cpp
@@ -271,8 +271,8 @@ bool CSSFontFaceSource::isLocalFontAvailable(const FontDescription& fontDescript
void CSSFontFaceSource::willUseFontData()
{
- if (m_font)
- m_font->willUseFontData();
+ if (m_face && m_font)
+ beginLoadingFontSoon();
}
void CSSFontFaceSource::beginLoadingFontSoon()

Powered by Google App Engine
This is Rietveld 408576698