address reviewer comments that I forgot when checking in patch for bug 204386. r+sr=bz

git-svn-id: svn://10.0.0.236/trunk@143110 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de 2003-05-30 19:47:08 +00:00
parent 092e5665e0
commit 07b4fe97ca
2 changed files with 6 additions and 2 deletions

View File

@ -666,8 +666,10 @@ nsImageFrame::OnStopDecode(imgIRequest *aRequest,
NS_ASSERTION(imageContainer, "Successful load with no container?");
intrinsicSizeChanged = RecalculateTransform(imageContainer);
}
else
else {
// Have to size to 0,0 so that GetDesiredSize recalculates the size
mIntrinsicSize.SizeTo(0, 0);
}
if (mState & IMAGE_GOTINITIALREFLOW) { // do nothing if we havn't gotten the inital reflow yet
if (!(mState & IMAGE_SIZECONSTRAINED) && intrinsicSizeChanged) {

View File

@ -666,8 +666,10 @@ nsImageFrame::OnStopDecode(imgIRequest *aRequest,
NS_ASSERTION(imageContainer, "Successful load with no container?");
intrinsicSizeChanged = RecalculateTransform(imageContainer);
}
else
else {
// Have to size to 0,0 so that GetDesiredSize recalculates the size
mIntrinsicSize.SizeTo(0, 0);
}
if (mState & IMAGE_GOTINITIALREFLOW) { // do nothing if we havn't gotten the inital reflow yet
if (!(mState & IMAGE_SIZECONSTRAINED) && intrinsicSizeChanged) {