mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1072539 - Only ForceDiscard() in imgFrame::GetFrame() if it's safe to do so. r=tn
This commit is contained in:
parent
91bc96aa11
commit
6f0ecafaa2
@ -612,8 +612,10 @@ RasterImage::GetFrame(uint32_t aFrameNum)
|
||||
if (!ref) {
|
||||
// The OS threw this frame away. We need to discard and redecode.
|
||||
MOZ_ASSERT(!mAnim, "Animated frames should be locked");
|
||||
ForceDiscard();
|
||||
WantDecodedFrames();
|
||||
if (CanForciblyDiscardAndRedecode()) {
|
||||
ForceDiscard();
|
||||
WantDecodedFrames();
|
||||
}
|
||||
return DrawableFrameRef();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user