зеркало из https://github.com/mozilla/pjs.git
Bug 398453 - Add unconstrained size check for pagebreakframe reflow. r+sr=roc, a=blocking1.9+
This commit is contained in:
Родитель
06dab749db
Коммит
5aa7447c46
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче