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:
parent
092e5665e0
commit
07b4fe97ca
@ -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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user