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

Unified Diff: Source/core/dom/Document.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/dom/Document.h ('k') | Source/core/dom/DocumentTiming.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 9d708509afd13473ba6435c070254941081a3ec8..b573b66f22b8f645b4b70ee12705183a97015211 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1918,6 +1918,18 @@ void Document::layoutUpdated()
}
}
+void Document::markFirstCustomFontText()
+{
+ if (!m_documentTiming.firstCustomFontText())
+ m_documentTiming.markFirstCustomFontText();
+}
+
+void Document::markFirstNonBlankText()
+{
+ if (!m_documentTiming.firstNonBlankText())
+ m_documentTiming.markFirstNonBlankText();
+}
+
void Document::setNeedsFocusedElementCheck()
{
setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::createWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Focus));
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/DocumentTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698