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

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

Issue 1773633003: [DO NOT COMMIT] Trace events for layout-based First Meaningful Paint detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/CSSFontFace.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFace.cpp b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
index d9aaf83960c6ac6855ea7e17861eb92d4a70d06a..0c9001e486220dbfd07dc1b23dbb9958e75f57f0 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFace.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFace.cpp
@@ -76,6 +76,11 @@ void CSSFontFace::fontLoaded(RemoteFontFaceSource* source)
m_segmentedFontFace->fontFaceInvalidated();
}
+bool CSSFontFace::isBlank() const
+{
+ return !m_sources.isEmpty() && m_sources.first()->isBlank();
+}
+
void CSSFontFace::didBecomeVisibleFallback(RemoteFontFaceSource* source)
{
if (!isValid() || source != m_sources.first())

Powered by Google App Engine
This is Rietveld 408576698