mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 944353. If we've had a decoder error then the image is not usable. r=seth
This matches what RasterImage will do.
This commit is contained in:
parent
520961becf
commit
b54dcfc90d
@ -155,7 +155,7 @@ Decoder::Finish(RasterImage::eShutdownIntent aShutdownIntent)
|
||||
}
|
||||
}
|
||||
|
||||
bool usable = true;
|
||||
bool usable = !HasDecoderError();
|
||||
if (aShutdownIntent != RasterImage::eShutdownIntent_NotNeeded && !HasDecoderError()) {
|
||||
// If we only have a data error, we're usable if we have at least one complete frame.
|
||||
if (GetCompleteFrameCount() == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user