Remove mis-implementation of the "ua-dependent" min-width stuff from
CSS1/2. Bug 159059, sr=dbaron, r=hyatt git-svn-id: svn://10.0.0.236/trunk@126437 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1250,21 +1250,17 @@ nsBlockFrame::ComputeFinalSize(const nsHTMLReflowState& aReflowState,
|
||||
#ifdef NOISY_KIDXMOST
|
||||
printf("%p aState.mKidXMost=%d\n", this, aState.mKidXMost);
|
||||
#endif
|
||||
nscoord minWidth = aState.mKidXMost + borderPadding.right;
|
||||
if (!HaveAutoWidth(aReflowState)) {
|
||||
// Use style defined width
|
||||
aMetrics.width = borderPadding.left + aReflowState.mComputedWidth +
|
||||
borderPadding.right;
|
||||
// XXX quote css1 section here
|
||||
if ((0 == aReflowState.mComputedWidth) && (aMetrics.width < minWidth)) {
|
||||
aMetrics.width = minWidth;
|
||||
}
|
||||
|
||||
// When style defines the width use it for the max-element-size
|
||||
// because we can't shrink any smaller.
|
||||
maxWidth = aMetrics.width;
|
||||
}
|
||||
else {
|
||||
nscoord minWidth = aState.mKidXMost + borderPadding.right;
|
||||
nscoord computedWidth = minWidth;
|
||||
PRBool compact = PR_FALSE;
|
||||
#if 0
|
||||
|
||||
@@ -1250,21 +1250,17 @@ nsBlockFrame::ComputeFinalSize(const nsHTMLReflowState& aReflowState,
|
||||
#ifdef NOISY_KIDXMOST
|
||||
printf("%p aState.mKidXMost=%d\n", this, aState.mKidXMost);
|
||||
#endif
|
||||
nscoord minWidth = aState.mKidXMost + borderPadding.right;
|
||||
if (!HaveAutoWidth(aReflowState)) {
|
||||
// Use style defined width
|
||||
aMetrics.width = borderPadding.left + aReflowState.mComputedWidth +
|
||||
borderPadding.right;
|
||||
// XXX quote css1 section here
|
||||
if ((0 == aReflowState.mComputedWidth) && (aMetrics.width < minWidth)) {
|
||||
aMetrics.width = minWidth;
|
||||
}
|
||||
|
||||
// When style defines the width use it for the max-element-size
|
||||
// because we can't shrink any smaller.
|
||||
maxWidth = aMetrics.width;
|
||||
}
|
||||
else {
|
||||
nscoord minWidth = aState.mKidXMost + borderPadding.right;
|
||||
nscoord computedWidth = minWidth;
|
||||
PRBool compact = PR_FALSE;
|
||||
#if 0
|
||||
|
||||
Reference in New Issue
Block a user