Bug 680786. nsImageFrame::OnStartContainer should not assume that its intrinsic size has changed. r=roc

This commit is contained in:
Boris Zbarsky 2011-08-23 17:03:02 -04:00
Родитель a3b8c61917
Коммит 6f48c2a533
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -548,10 +548,10 @@ nsImageFrame::OnStartContainer(imgIRequest *aRequest, imgIContainer *aImage)
return NS_OK;
}
UpdateIntrinsicSize(aImage);
UpdateIntrinsicRatio(aImage);
PRBool intrinsicSizeChanged = UpdateIntrinsicSize(aImage);
intrinsicSizeChanged = UpdateIntrinsicRatio(aImage) || intrinsicSizeChanged;
if (mState & IMAGE_GOTINITIALREFLOW) {
if (intrinsicSizeChanged && (mState & IMAGE_GOTINITIALREFLOW)) {
// Now we need to reflow if we have an unconstrained size and have
// already gotten the initial reflow
if (!(mState & IMAGE_SIZECONSTRAINED)) {