Reverting in hope of fixing the orangeness...

This commit is contained in:
attinasi%netscape.com 2001-03-14 19:59:05 +00:00
parent a799c2e203
commit 95bc916e0a

View File

@ -145,16 +145,6 @@ nsHTMLImageLoader::Update(nsIPresContext* aPresContext,
aStatus, mImageLoader, mCallBack,
mFlags.mSquelchCallback ? "yes" : "no");
#endif
if (!mFlags.mNeedSizeNotification &&
NS_IMAGE_LOAD_STATUS_SIZE_AVAILABLE & aStatus) {
// remove the size available bit since it is not needed
aStatus &= ~NS_IMAGE_LOAD_STATUS_SIZE_AVAILABLE;
// check if any status left
if (aStatus == NS_IMAGE_LOAD_STATUS_NONE)
return;
}
if (NS_IMAGE_LOAD_STATUS_SIZE_AVAILABLE & aStatus) {
if (mImageLoader) {
mImageLoader->GetSize(mIntrinsicImageSize);
@ -162,6 +152,10 @@ nsHTMLImageLoader::Update(nsIPresContext* aPresContext,
mFlags.mHaveIntrinsicImageSize = PR_TRUE;
}
}
if ((NS_IMAGE_LOAD_STATUS_SIZE_AVAILABLE == aStatus) &&
!mFlags.mNeedSizeNotification) {
return;
}
}
// Pass on update to the user of this object if they want it