bug 12287 - honors mComputed values in reflow state and uses CSS box-sizing property.

This commit is contained in:
karnaze@netscape.com
2000-01-02 22:55:48 +00:00
parent e0b5e17814
commit f81d194173
18 changed files with 244 additions and 320 deletions

View File

@@ -174,8 +174,8 @@ BasicTableLayoutStrategy::BalanceColumnWidths(nsIStyleContext* aTableSty
// determine if the table is auto/fixed and get the fixed width if available
nscoord maxWidth = aMaxWidthIn;
nscoord specifiedTableWidth = 0;
PRBool tableIsAutoWidth = mTableFrame->IsAutoWidth(aReflowState, specifiedTableWidth);
nscoord specifiedTableWidth = mTableFrame->CalcBorderBoxWidth(aReflowState);
PRBool tableIsAutoWidth = mTableFrame->IsAutoWidth();
// a specifiedTableWidth of <= 0 indicates percentage based
if (!tableIsAutoWidth && (specifiedTableWidth > 0)) {
maxWidth = PR_MIN(specifiedTableWidth, aMaxWidthIn); // specifiedWidth usually == aMaxWidthIn for fixed table