mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
Reverting in hope of fixing the orangeness...
This commit is contained in:
parent
a799c2e203
commit
95bc916e0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user