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

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

Issue 171823002: Make text visible when font loading takes longer than 3 seconds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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: Source/core/css/CSSFontFace.cpp
diff --git a/Source/core/css/CSSFontFace.cpp b/Source/core/css/CSSFontFace.cpp
index bfb995e50ed1211448bb7f4a455aaa6fa43822c4..5911c07963d467d1401be69feee18e79b72c4d5e 100644
--- a/Source/core/css/CSSFontFace.cpp
+++ b/Source/core/css/CSSFontFace.cpp
@@ -84,6 +84,14 @@ void CSSFontFace::fontLoaded(CSSFontFaceSource* source)
m_segmentedFontFace->fontLoaded(this);
}
+void CSSFontFace::fontLoadWaitLimitExceeded(CSSFontFaceSource* source)
+{
+ if (!isValid() || source != m_sources.first())
+ return;
+ if (m_segmentedFontFace)
+ m_segmentedFontFace->fontLoadWaitLimitExceeded(this);
+}
+
PassRefPtr<SimpleFontData> CSSFontFace::getFontData(const FontDescription& fontDescription)
{
if (!isValid())

Powered by Google App Engine
This is Rietveld 408576698