no math with NS_UNCONSTRAINEDSIZE please, bug 14862 r=karnaze sr=roc+moz

This commit is contained in:
bernd.mielke%snafu.de 2002-06-04 04:37:06 +00:00
Родитель c5216dcce6
Коммит 27e0af3e22
2 изменённых файлов: 4 добавлений и 2 удалений

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

@ -5256,7 +5256,8 @@ nsBlockFrame::ReflowFloater(nsBlockReflowState& aState,
availWidth -= availWidth % twp;
}
}
nscoord availHeight = (NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height)
nscoord availHeight = ((NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height) ||
(NS_UNCONSTRAINEDSIZE == aState.mContentArea.height))
? NS_UNCONSTRAINEDSIZE
: PR_MAX(0, aState.mContentArea.height - aState.mY);

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

@ -5256,7 +5256,8 @@ nsBlockFrame::ReflowFloater(nsBlockReflowState& aState,
availWidth -= availWidth % twp;
}
}
nscoord availHeight = (NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height)
nscoord availHeight = ((NS_UNCONSTRAINEDSIZE == aState.mAvailSpaceRect.height) ||
(NS_UNCONSTRAINEDSIZE == aState.mContentArea.height))
? NS_UNCONSTRAINEDSIZE
: PR_MAX(0, aState.mContentArea.height - aState.mY);