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

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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index b0d729f2f837f452c5c3dd0344440ca3d4aa6239..a7c010961726bced1c6da357368aa6a2627a55de 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1915,6 +1915,18 @@ void Document::layoutUpdated()
}
}
+void Document::markFirstCustomFontText()
+{
+ if (!m_documentTiming.firstCustomFontText())
+ m_documentTiming.markFirstCustomFontText();
+}
+
+void Document::markFirstNonBlankText()
+{
+ if (!m_documentTiming.firstNonBlankText())
+ m_documentTiming.markFirstNonBlankText();
+}
kinuko 2015/09/15 05:25:08 (If we start to feel these are too annoying let's
+
void Document::setNeedsFocusedElementCheck()
{
setNeedsStyleRecalc(LocalStyleChange, StyleChangeReasonForTracing::createWithExtraData(StyleChangeReason::PseudoClass, StyleChangeExtraData::Focus));

Powered by Google App Engine
This is Rietveld 408576698