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

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

Issue 321403003: Notify font loads via FontLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/css/FontLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/RemoteFontFaceSource.cpp
diff --git a/Source/core/css/RemoteFontFaceSource.cpp b/Source/core/css/RemoteFontFaceSource.cpp
index 4ee1972d266e88d67d2f74f285316a50764f58c5..5316a6ef55a0feaca1dc0b61cf801508f7545f2d 100644
--- a/Source/core/css/RemoteFontFaceSource.cpp
+++ b/Source/core/css/RemoteFontFaceSource.cpp
@@ -70,15 +70,19 @@ void RemoteFontFaceSource::fontLoaded(FontResource*)
m_histograms.recordRemoteFont(m_font.get());
pruneTable();
- if (m_face)
+ if (m_face) {
+ m_fontLoader->fontFaceInvalidated();
m_face->fontLoaded(this);
+ }
}
void RemoteFontFaceSource::fontLoadWaitLimitExceeded(FontResource*)
{
pruneTable();
- if (m_face)
+ if (m_face) {
+ m_fontLoader->fontFaceInvalidated();
m_face->fontLoadWaitLimitExceeded(this);
+ }
m_histograms.recordFallbackTime(m_font.get());
}
« no previous file with comments | « Source/core/css/FontLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698