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

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

Issue 21012002: Web Animations: Trigger and update CSS Animations backed by the Web Animations model (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Recompute and apply updates to active animations after style resolution. Created 7 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
Index: Source/core/animation/Player.cpp
diff --git a/Source/core/animation/Player.cpp b/Source/core/animation/Player.cpp
index abb23f92de91c87fcefd054a7b02b241a2688732..7af07e2d49d65b3a5eec3c711c701b721db9aef0 100644
--- a/Source/core/animation/Player.cpp
+++ b/Source/core/animation/Player.cpp
@@ -94,6 +94,15 @@ bool Player::update()
return m_content->isCurrent() || m_content->isInEffect();
}
+void Player::cancel()
+{
+ if (!m_content)
+ return;
+
+ m_content->detach();
+ m_content = 0;
+}
+
void Player::setCurrentTime(double seekTime)
{
if (paused())

Powered by Google App Engine
This is Rietveld 408576698