Bug 1158549 - Properly apply min/max constraints to block-size in vertical writing modes. r=smontagu

This commit is contained in:
Jonathan Kew 2015-04-27 09:41:37 +01:00
parent b52d9eb75f
commit 3381e78769

View File

@ -1557,9 +1557,9 @@ nsBlockFrame::ComputeFinalSize(const nsHTMLReflowState& aReflowState,
}
else if (NS_FRAME_IS_COMPLETE(aState.mReflowStatus)) {
nscoord contentBSize = blockEndEdgeOfChildren - borderPadding.BStart(wm);
nscoord autoBSize = aReflowState.ApplyMinMaxHeight(contentBSize);
nscoord autoBSize = aReflowState.ApplyMinMaxBSize(contentBSize);
if (autoBSize != contentBSize) {
// Our min-height or max-height made our height change. Don't carry out
// Our min- or max-bsize value made our bsize change. Don't carry out
// our kids' block-end margins.
aMetrics.mCarriedOutBEndMargin.Zero();
}