mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 516772 - nsImageFrame ends up using random values for image size if mError set in imgContainer. r=bholley/bz
This commit is contained in:
parent
f87a729ebc
commit
150726db3f
@ -686,6 +686,9 @@ NS_IMETHODIMP imgRequest::OnStopDecode(imgIRequest *aRequest,
|
||||
// If we were successful, set STATUS_DECODE_COMPLETE
|
||||
if (NS_SUCCEEDED(aStatus))
|
||||
mImageStatus |= imgIRequest::STATUS_DECODE_COMPLETE;
|
||||
// If we weren't, clear all success status bits and set error.
|
||||
else
|
||||
mImageStatus = imgIRequest::STATUS_ERROR;
|
||||
|
||||
// ImgContainer and everything below it is completely correct and
|
||||
// bulletproof about its handling of decoder notifications.
|
||||
|
Loading…
Reference in New Issue
Block a user