зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1186684 - Remove unused ErrorResult in Animation::SetPlaybackRate/SilentlySetPlaybackRate. r=bbirtles
This commit is contained in:
Родитель
4729fff432
Коммит
3c7a785930
|
@ -158,9 +158,7 @@ Animation::SetPlaybackRate(double aPlaybackRate)
|
||||||
Nullable<TimeDuration> previousTime = GetCurrentTime();
|
Nullable<TimeDuration> previousTime = GetCurrentTime();
|
||||||
mPlaybackRate = aPlaybackRate;
|
mPlaybackRate = aPlaybackRate;
|
||||||
if (!previousTime.IsNull()) {
|
if (!previousTime.IsNull()) {
|
||||||
ErrorResult rv;
|
|
||||||
SetCurrentTime(previousTime.Value());
|
SetCurrentTime(previousTime.Value());
|
||||||
MOZ_ASSERT(!rv.Failed(), "Should not assert for non-null time");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -449,9 +447,7 @@ Animation::SilentlySetPlaybackRate(double aPlaybackRate)
|
||||||
Nullable<TimeDuration> previousTime = GetCurrentTime();
|
Nullable<TimeDuration> previousTime = GetCurrentTime();
|
||||||
mPlaybackRate = aPlaybackRate;
|
mPlaybackRate = aPlaybackRate;
|
||||||
if (!previousTime.IsNull()) {
|
if (!previousTime.IsNull()) {
|
||||||
ErrorResult rv;
|
|
||||||
SilentlySetCurrentTime(previousTime.Value());
|
SilentlySetCurrentTime(previousTime.Value());
|
||||||
MOZ_ASSERT(!rv.Failed(), "Should not assert for non-null time");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче