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

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

Issue 1352523002: Use high precision timestamp for Event.timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use m_target to find event document 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..d354dc6d4adc241fec9ee25439ecc2b147f40b2c 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5112,6 +5112,14 @@ void Document::pluginLoadingTimerFired(Timer<Document>*)
updateLayout();
}
+double Document::monotonicTimeToZeroBasedDocumentTime(double monotonicTime) const
+{
+ if (!loader())
+ return 0;
+
+ return loader()->timing().monotonicTimeToZeroBasedDocumentTime(monotonicTime);
+}
+
ScriptedAnimationController& Document::ensureScriptedAnimationController()
{
if (!m_scriptedAnimationController) {

Powered by Google App Engine
This is Rietveld 408576698