mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
bdc97c1dad
commit
789cc27436
@ -935,10 +935,9 @@ RasterImage::OnAddedFrame(uint32_t aNewFrameCount,
|
||||
if (mPendingAnimation && ShouldAnimate()) {
|
||||
StartAnimation();
|
||||
}
|
||||
|
||||
if (aNewFrameCount > 1) {
|
||||
mAnim->UnionFirstFrameRefreshArea(aNewRefreshArea);
|
||||
}
|
||||
}
|
||||
if (aNewFrameCount > 1) {
|
||||
mAnim->UnionFirstFrameRefreshArea(aNewRefreshArea);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user