Chromium Code Reviews| 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()) |