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

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

Issue 2419753002: Prevent FontResource load limit timers from restarting during loading (Closed)
Patch Set: 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.cpp
diff --git a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
index 57e48b357383b9e79a6dbd8d8a53cf995dde2af5..9c3f564d0932a2bd7700a03c479c1a80b3f92954 100644
--- a/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
+++ b/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp
@@ -231,9 +231,10 @@ PassRefPtr<SimpleFontData> RemoteFontFaceSource::createLoadingFallbackFontData(
void RemoteFontFaceSource::beginLoadIfNeeded() {
if (m_fontSelector->document() && m_font->stillNeedsLoad()) {
m_fontSelector->document()->fetcher()->startLoad(m_font);
+ if (!m_font->isLoaded())
+ m_font->startLoadLimitTimers();
m_histograms.loadStarted();
}
- m_font->startLoadLimitTimersIfNeeded();
if (m_face)
m_face->didBeginLoad();

Powered by Google App Engine
This is Rietveld 408576698