зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1439723 - use a temporary in Animation::Tick(); r=mattwoodrow
This commit is contained in:
Родитель
cb40f0624d
Коммит
821df39aef
|
@ -693,8 +693,10 @@ Animation::Tick()
|
|||
// during the *previous* tick of the refresh driver, it can still be
|
||||
// ahead of the *current* timeline time when we are using the
|
||||
// vsync timer so we need to clamp it to the timeline time.
|
||||
mPendingReadyTime.SetValue(std::min(mTimeline->GetCurrentTime().Value(),
|
||||
mPendingReadyTime.Value()));
|
||||
TimeDuration currentTime = mTimeline->GetCurrentTime().Value();
|
||||
if (currentTime < mPendingReadyTime.Value()) {
|
||||
mPendingReadyTime.SetValue(currentTime);
|
||||
}
|
||||
FinishPendingAt(mPendingReadyTime.Value());
|
||||
mPendingReadyTime.SetNull();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче