Bug 705580 - Remove the cached ImageContainer when the current frame changes. r=joe

This commit is contained in:
Matt Woodrow 2011-12-05 11:53:38 +13:00
Родитель f236d1743f
Коммит fd095d077f
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -325,6 +325,7 @@ RasterImage::AdvanceFrame(TimeStamp aTime, nsIntRect* aDirtyRect)
PRUint32 currentFrameIndex = mAnim->currentAnimationFrameIndex;
PRUint32 nextFrameIndex = mAnim->currentAnimationFrameIndex + 1;
PRUint32 timeout = 0;
mImageContainer = nsnull;
// Figure out if we have the next full frame. This is more complicated than
// just checking for mFrames.Length() because decoders append their frames
@ -1409,6 +1410,7 @@ RasterImage::ResetAnimation()
mAnim->lastCompositedFrameIndex = -1;
mAnim->currentAnimationFrameIndex = 0;
mImageContainer = nsnull;
// Note - We probably want to kick off a redecode somewhere around here when
// we fix bug 500402.