Don't do arithmetic on NS_UNCONSTRAINEDSIZE. But 371348, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@220898 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d514f9193e
commit
73a4123b0e
@ -1471,9 +1471,13 @@ nsHTMLReflowState::InitConstraints(nsPresContext* aPresContext,
|
||||
mComputedWidth = availableWidth - mComputedBorderPadding.LeftRight();
|
||||
if (mComputedWidth < 0)
|
||||
mComputedWidth = 0;
|
||||
mComputedHeight = availableHeight - mComputedBorderPadding.TopBottom();
|
||||
if (mComputedHeight < 0)
|
||||
mComputedHeight = 0;
|
||||
if (availableHeight != NS_UNCONSTRAINEDSIZE) {
|
||||
mComputedHeight = availableHeight - mComputedBorderPadding.TopBottom();
|
||||
if (mComputedHeight < 0)
|
||||
mComputedHeight = 0;
|
||||
} else {
|
||||
mComputedHeight = NS_UNCONSTRAINEDSIZE;
|
||||
}
|
||||
|
||||
mComputedMinWidth = mComputedMinHeight = 0;
|
||||
mComputedMaxWidth = mComputedMaxHeight = NS_UNCONSTRAINEDSIZE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user