From 216f30822fffb96c8558347b7c50963c84670904 Mon Sep 17 00:00:00 2001 From: "dholbert%cs.stanford.edu" Date: Wed, 7 Nov 2007 19:49:44 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsPageFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/generic/nsPageFrame.cpp b/mozilla/layout/generic/nsPageFrame.cpp index e7437b14922..75d33857a7c 100644 --- a/mozilla/layout/generic/nsPageFrame.cpp +++ b/mozilla/layout/generic/nsPageFrame.cpp @@ -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);