зеркало из https://github.com/mozilla/gecko-dev.git
Bug 873505 - Set the animation frame's start time based on when we *wanted* to start, not when we actually did. r=seth
--HG-- extra : rebase_source : 3a227e377e84d23f00ba11352fe22fa51c0d2958
This commit is contained in:
Родитель
4cb087e7a2
Коммит
ffc71066f7
|
@ -617,7 +617,8 @@ RasterImage::AdvanceFrame(TimeStamp aTime, nsIntRect* aDirtyRect)
|
|||
NS_WARNING("RasterImage::AdvanceFrame(): Compositing of frame failed");
|
||||
nextFrame->SetCompositingFailed(true);
|
||||
mAnim->currentAnimationFrameIndex = nextFrameIndex;
|
||||
mAnim->currentAnimationFrameTime = aTime;
|
||||
mAnim->currentAnimationFrameTime = mAnim->currentAnimationFrameTime +
|
||||
TimeDuration::FromMilliseconds(timeout);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -626,7 +627,8 @@ RasterImage::AdvanceFrame(TimeStamp aTime, nsIntRect* aDirtyRect)
|
|||
|
||||
// Set currentAnimationFrameIndex at the last possible moment
|
||||
mAnim->currentAnimationFrameIndex = nextFrameIndex;
|
||||
mAnim->currentAnimationFrameTime = aTime;
|
||||
mAnim->currentAnimationFrameTime = mAnim->currentAnimationFrameTime +
|
||||
TimeDuration::FromMilliseconds(timeout);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче