Bug 1132427. Make sure that the first frame refresh area for an animated image gets updated based on the refresh area of all subsequent frames, not just the second. r=jrmuizel

This commit is contained in:
Timothy Nikkel 2015-02-13 02:26:41 -06:00
parent bdc97c1dad
commit 789cc27436

View File

@ -935,10 +935,9 @@ RasterImage::OnAddedFrame(uint32_t aNewFrameCount,
if (mPendingAnimation && ShouldAnimate()) { if (mPendingAnimation && ShouldAnimate()) {
StartAnimation(); StartAnimation();
} }
}
if (aNewFrameCount > 1) { if (aNewFrameCount > 1) {
mAnim->UnionFirstFrameRefreshArea(aNewRefreshArea); mAnim->UnionFirstFrameRefreshArea(aNewRefreshArea);
}
} }
} }
} }