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

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

Issue 23327003: Web Animations: Set the DocumentTimeline's zero time when the Document reaches the 'loading' phase (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | no next file » | 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 0120ecbfce62f2123cafdf8a7667c875ace03d6c..d73a29ee99371896a3603c6b81f175a6c5a50f56 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -1084,15 +1084,15 @@ void Document::setReadyState(ReadyState readyState)
switch (readyState) {
case Loading:
- if (!m_documentTiming.domLoading)
+ if (!m_documentTiming.domLoading) {
m_documentTiming.domLoading = monotonicallyIncreasingTime();
+ if (RuntimeEnabledFeatures::webAnimationsEnabled())
+ m_timeline->setZeroTimeAsPerfTime(m_documentTiming.domLoading);
+ }
break;
case Interactive:
- if (!m_documentTiming.domInteractive) {
+ if (!m_documentTiming.domInteractive)
m_documentTiming.domInteractive = monotonicallyIncreasingTime();
- if (RuntimeEnabledFeatures::webAnimationsEnabled())
- m_timeline->setZeroTimeAsPerfTime(m_documentTiming.domInteractive);
- }
break;
case Complete:
if (!m_documentTiming.domComplete)
« no previous file with comments | « Source/core/animation/css/CSSAnimations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698