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

Unified Diff: Source/core/dom/Document.cpp

Issue 1288973002: Observing DocumentTiming and sending data to RenderFrameImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor edits from review Created 5 years, 4 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 4101200e5cc486a46c89b93bb988aaeaea64f334..8432ac10b150de61c4eaa237c04ccacad3599357 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -421,6 +421,7 @@ Document::Document(const DocumentInit& initializer, DocumentClassFlags documentC
, m_loadEventDelayCount(0)
, m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired)
, m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired)
+ , m_documentTiming(this)
, m_writeRecursionIsTooDeep(false)
, m_writeRecursionDepth(0)
, m_taskRunner(MainThreadTaskRunner::create(this))
@@ -5191,6 +5192,12 @@ ScriptedAnimationController& Document::ensureScriptedAnimationController()
return *m_scriptedAnimationController;
}
+void Document::onDocumentTimingChanged() const
+{
+ if (frame())
+ frame()->loader().client()->didChangePerformanceTiming();
+}
+
int Document::requestAnimationFrame(FrameRequestCallback* callback)
{
return ensureScriptedAnimationController().registerCallback(callback);

Powered by Google App Engine
This is Rietveld 408576698