Bug 398453 - Add unconstrained size check for pagebreakframe reflow. r+sr=roc, a=blocking1.9+

This commit is contained in:
dholbert@cs.stanford.edu 2007-11-07 11:49:44 -08:00
Родитель e05063c49c
Коммит a0238499f9
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -611,7 +611,8 @@ nsPageBreakFrame::Reflow(nsPresContext* aPresContext,
// Override reflow, since we don't want to deal with what our
// computed values are.
aDesiredSize.width = GetIntrinsicWidth();
aDesiredSize.height = aReflowState.availableHeight;
aDesiredSize.height = (aReflowState.availableHeight == NS_UNCONSTRAINEDSIZE ?
0 : aReflowState.availableHeight);
// round the height down to the nearest pixel
aDesiredSize.height -=
aDesiredSize.height % nsPresContext::CSSPixelsToAppUnits(1);