Bug 516772 - nsImageFrame ends up using random values for image size if mError set in imgContainer. r=bholley/bz

This commit is contained in:
Joe Drew 2010-03-07 10:48:24 +01:00
parent f87a729ebc
commit 150726db3f

View File

@ -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.