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

Unified Diff: Source/core/animation/AnimationNode.cpp

Issue 365163004: Web Animations: Remove timeLag from Player API and model (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years, 5 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 | « LayoutTests/web-animations-api/timed-item.html ('k') | Source/core/animation/AnimationPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/AnimationNode.cpp
diff --git a/Source/core/animation/AnimationNode.cpp b/Source/core/animation/AnimationNode.cpp
index 8d1608c4cf0674d265a6b6e0f06a1ce0fcb44231..aeaa0b551795becce4cfee9b0a01b58319978c9a 100644
--- a/Source/core/animation/AnimationNode.cpp
+++ b/Source/core/animation/AnimationNode.cpp
@@ -158,7 +158,7 @@ void AnimationNode::updateInheritedTime(double inheritedTime, TimingUpdateReason
// Test for events even if timing didn't need an update as the player may have gained a start time.
// FIXME: Refactor so that we can ASSERT(m_player) here, this is currently required to be nullable for testing.
- if (reason == TimingUpdateForAnimationFrame && (!m_player || m_player->hasStartTime())) {
+ if (reason == TimingUpdateForAnimationFrame && (!m_player || m_player->hasStartTime() || m_player->paused())) {
if (m_eventDelegate)
m_eventDelegate->onEventCondition(this);
}
« no previous file with comments | « LayoutTests/web-animations-api/timed-item.html ('k') | Source/core/animation/AnimationPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698