зеркало из https://github.com/mozilla/pjs.git
address reviewer comments that I forgot when checking in patch for bug 204386. r+sr=bz
This commit is contained in:
Родитель
c6dd498436
Коммит
7696e14674
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче