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

This commit is contained in:
cbiesinger%web.de 2003-05-30 19:47:08 +00:00
parent 3a02deb097
commit f4bd4d5572
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) {