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

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
« no previous file with comments | « Source/core/css/CSSFontSelector.h ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFontSelector.cpp
diff --git a/Source/core/css/CSSFontSelector.cpp b/Source/core/css/CSSFontSelector.cpp
index d984785f0638362ca88bdce4deb68553a3cea4a3..320a14dfb21c98ec0f50a5b2b2f75c9b0b10e988 100644
--- a/Source/core/css/CSSFontSelector.cpp
+++ b/Source/core/css/CSSFontSelector.cpp
@@ -148,6 +148,16 @@ void CSSFontSelector::willUseFontData(const FontDescription& fontDescription, co
face->willUseFontData(fontDescription, character);
}
+void CSSFontSelector::reportFirstCustomFontText()
+{
+ m_document->markFirstCustomFontText();
+}
+
+void CSSFontSelector::reportFirstNonBlankText()
+{
+ m_document->markFirstNonBlankText();
+}
+
bool CSSFontSelector::isPlatformFontAvailable(const FontDescription& fontDescription, const AtomicString& passedFamily)
{
AtomicString family = familyNameFromSettings(m_genericFontFamilySettings, fontDescription, passedFamily);
« no previous file with comments | « Source/core/css/CSSFontSelector.h ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698