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:
Joe Drew 2013-05-17 13:41:35 -04:00
Родитель 4cb087e7a2
Коммит ffc71066f7
1 изменённых файлов: 4 добавлений и 2 удалений

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

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