зеркало из https://github.com/mozilla/gecko-dev.git
Bug 516772 - nsImageFrame ends up using random values for image size if mError set in imgContainer. r=bholley/bz
This commit is contained in:
Родитель
f87a729ebc
Коммит
150726db3f
|
@ -686,6 +686,9 @@ NS_IMETHODIMP imgRequest::OnStopDecode(imgIRequest *aRequest,
|
||||||
// If we were successful, set STATUS_DECODE_COMPLETE
|
// If we were successful, set STATUS_DECODE_COMPLETE
|
||||||
if (NS_SUCCEEDED(aStatus))
|
if (NS_SUCCEEDED(aStatus))
|
||||||
mImageStatus |= imgIRequest::STATUS_DECODE_COMPLETE;
|
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
|
// ImgContainer and everything below it is completely correct and
|
||||||
// bulletproof about its handling of decoder notifications.
|
// bulletproof about its handling of decoder notifications.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче