mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 398453 - Add unconstrained size check for pagebreakframe reflow. r+sr=roc, a=blocking1.9+
This commit is contained in:
parent
e05063c49c
commit
a0238499f9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user