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
Родитель b6167dda0d
Коммит f404970a0d
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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();