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

git-svn-id: svn://10.0.0.236/trunk@238922 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dholbert%cs.stanford.edu
2007-11-07 19:49:44 +00:00
parent 4a10706315
commit 216f30822f

View File

@@ -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);