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:
parent
44b285be1d
commit
79ebfa0850
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user