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

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

Issue 1314843009: Add DocumentTiming metrics for "time to first text paint" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index d984785f0638362ca88bdce4deb68553a3cea4a3..92f1e33806a86caada1c9122d1f074e9def0d4f1 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -128,6 +128,13 @@ static AtomicString familyNameFromSettings(const GenericFontFamilySettings& sett
return emptyAtom;
}
+void CSSFontSelector::reportFirstNonBlankText(bool isCustomFont)
+{
+ if (isCustomFont)
+ m_document->markFirstCustomFontText();
+ m_document->markFirstNonBlankText();
+}
+
PassRefPtr<FontData> CSSFontSelector::getFontData(const FontDescription& fontDescription, const AtomicString& familyName)
{
if (CSSSegmentedFontFace* face = m_fontFaceCache.get(fontDescription, familyName))

Powered by Google App Engine
This is Rietveld 408576698