Bug 1439723 - use a temporary in Animation::Tick(); r=mattwoodrow

This commit is contained in:
Nathan Froyd 2018-02-26 11:08:55 -05:00
Родитель cb40f0624d
Коммит 821df39aef
1 изменённых файлов: 4 добавлений и 2 удалений

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

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