зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1109390 part 15 - Update AnimationPlayer::SetCurrentTime to cancel any pending pause tasks; r=jwatt
This commit is contained in:
Родитель
b6167dda0d
Коммит
f404970a0d
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче