Don't switch a constrained height to an unconstrained one due to infinite clearance. Fixes layout/reftests/bugs/563584-10b.html . (Bug 563584, patch 29) r=roc

This commit is contained in:
L. David Baron 2010-08-05 21:59:20 -07:00
Родитель 3388e1f4ac
Коммит df4edf9f5e
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -3087,6 +3087,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
availSpace.y -= topMargin;
if (NS_UNCONSTRAINEDSIZE != availSpace.height) {
availSpace.height += topMargin;
// When there is a pushed float, clearance could equal
// NS_UNCONSTRAINEDSIZE (FIXME: is that really a good idea?), but
// we don't want that to change a constrained height to an
// unconstrained one.
if (NS_UNCONSTRAINEDSIZE == availSpace.height) {
--availSpace.height;
}
}
// Reflow the block into the available space