Bug 1109390 part 15 - Update AnimationPlayer::SetCurrentTime to cancel any pending pause tasks; r=jwatt

This commit is contained in:
Brian Birtles 2015-03-27 15:56:45 +09:00
parent 9343eb6087
commit 5f8854b4e5

View File

@ -123,7 +123,12 @@ AnimationPlayer::SetCurrentTime(const TimeDuration& aSeekTime)
{
SilentlySetCurrentTime(aSeekTime);
// Once pending pause tasks are supported, cancel that here.
if (mPendingState == PendingState::PausePending) {
CancelPendingTasks();
if (mReady) {
mReady->MaybeResolve(this);
}
}
UpdateSourceContent();
PostUpdate();