Make sure to not compute negative widths for blocks. Bug 230249, r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@151012 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu 2004-01-08 03:38:25 +00:00
parent 44b285be1d
commit 79ebfa0850
2 changed files with 2 additions and 0 deletions

View File

@ -1971,6 +1971,7 @@ nsHTMLReflowState::ComputeBlockBoxData(nsIPresContext* aPresContext,
mComputedWidth = availableWidth - mComputedMargin.left -
mComputedMargin.right - mComputedBorderPadding.left -
mComputedBorderPadding.right;
mComputedWidth = PR_MAX(mComputedWidth, 0);
}
AdjustComputedWidth(PR_FALSE);

View File

@ -1971,6 +1971,7 @@ nsHTMLReflowState::ComputeBlockBoxData(nsIPresContext* aPresContext,
mComputedWidth = availableWidth - mComputedMargin.left -
mComputedMargin.right - mComputedBorderPadding.left -
mComputedBorderPadding.right;
mComputedWidth = PR_MAX(mComputedWidth, 0);
}
AdjustComputedWidth(PR_FALSE);