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

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

Issue 63713002: Initiate webfont download right after style recalc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix zoom-zoom-coords.xhtml 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/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index 3c25503582e71d66be44684852fbbd29b08a7741..d35851f2d740614a961b8145ac997de62b263479 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -70,6 +70,11 @@ void FontLoader::addFontToBeginLoading(FontResource* fontResource)
void FontLoader::beginLoadTimerFired(Timer<WebCore::FontLoader>*)
{
+ loadPendingFonts();
+}
+
+void FontLoader::loadPendingFonts()
+{
ASSERT(m_resourceFetcher);
Vector<ResourcePtr<FontResource> > fontsToBeginLoading;
@@ -182,4 +187,9 @@ void CSSFontSelector::beginLoadingFontSoon(FontResource* font)
m_fontLoader.addFontToBeginLoading(font);
}
+void CSSFontSelector::loadPendingFonts()
+{
+ m_fontLoader.loadPendingFonts();
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698