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

Unified Diff: third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp

Issue 1417613005: Revert of Web Animations: Use a single animation clock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp
diff --git a/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp b/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp
index 19eb9a53d93fd6564cf8284263279fdea6056947..376fb93d6772a2ff16f86cba82e1d77c73cb574e 100644
--- a/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp
+++ b/third_party/WebKit/Source/core/animation/CompositorPendingAnimations.cpp
@@ -80,7 +80,7 @@
startedSynchronizedOnCompositor = true;
}
- if (animation->playing() && !animation->hasStartTime() && animation->timeline() && animation->timeline()->isActive()) {
+ if (animation->playing() && !animation->hasStartTime()) {
waitingForStartTime.append(animation.get());
}
} else {
@@ -142,7 +142,7 @@
animations.swap(m_waitingForCompositorAnimationStart);
for (auto animation : animations) {
- if (animation->hasStartTime() || animation->playStateInternal() != Animation::Pending || !animation->timeline() || !animation->timeline()->isActive()) {
+ if (animation->hasStartTime() || animation->playStateInternal() != Animation::Pending) {
// Already started or no longer relevant.
continue;
}

Powered by Google App Engine
This is Rietveld 408576698