diff --git a/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp b/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp index 46b1cbbf972..a2de9124cb0 100644 --- a/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp +++ b/mozilla/layout/html/table/src/BasicTableLayoutStrategy.cpp @@ -184,13 +184,13 @@ PRBool BasicTableLayoutStrategy::BalanceColumnWidths(nsIStyleContext *aTableStyl //availWidth = mMinTableWidth; // bump it up to the min // Step 3 - assign the width of all proportional-width columns in the remaining space - //if (PR_TRUE==gsDebug) + if (PR_TRUE==gsDebug) { printf ("BalanceColumnWidths with aMaxWidth = %d, availWidth = %d\n", aMaxWidth, availWidth); printf ("\t\t specifiedTW = %d, min/maxTW = %d %d\n", specifiedTableWidth, mMinTableWidth, mMaxTableWidth); printf ("\t\t reflow reason = %d\n", aReflowState.reason); } - //if (PR_TRUE==gsDebug) + if (PR_TRUE==gsDebug) { printf("\n%p: BEGIN BALANCE COLUMN WIDTHS\n", mTableFrame); for (PRInt32 i=0; iGetAdjustedMinColWidth() + colInset; } mMinTableWidth = PR_MAX(mMinTableWidth, sumOfAdjustedColMinWidths); - printf("minTW=%d, maxTW=%d with DMCW=%d\n", mMinTableWidth, mMaxTableWidth, sumOfAdjustedColMinWidths); + if (gsDebug) printf("minTW=%d, maxTW=%d with DMCW=%d\n", mMinTableWidth, mMaxTableWidth, sumOfAdjustedColMinWidths); } // take the fixed space spanned by the columns in aColSpanList diff --git a/mozilla/layout/tables/BasicTableLayoutStrategy.cpp b/mozilla/layout/tables/BasicTableLayoutStrategy.cpp index 46b1cbbf972..a2de9124cb0 100644 --- a/mozilla/layout/tables/BasicTableLayoutStrategy.cpp +++ b/mozilla/layout/tables/BasicTableLayoutStrategy.cpp @@ -184,13 +184,13 @@ PRBool BasicTableLayoutStrategy::BalanceColumnWidths(nsIStyleContext *aTableStyl //availWidth = mMinTableWidth; // bump it up to the min // Step 3 - assign the width of all proportional-width columns in the remaining space - //if (PR_TRUE==gsDebug) + if (PR_TRUE==gsDebug) { printf ("BalanceColumnWidths with aMaxWidth = %d, availWidth = %d\n", aMaxWidth, availWidth); printf ("\t\t specifiedTW = %d, min/maxTW = %d %d\n", specifiedTableWidth, mMinTableWidth, mMaxTableWidth); printf ("\t\t reflow reason = %d\n", aReflowState.reason); } - //if (PR_TRUE==gsDebug) + if (PR_TRUE==gsDebug) { printf("\n%p: BEGIN BALANCE COLUMN WIDTHS\n", mTableFrame); for (PRInt32 i=0; iGetAdjustedMinColWidth() + colInset; } mMinTableWidth = PR_MAX(mMinTableWidth, sumOfAdjustedColMinWidths); - printf("minTW=%d, maxTW=%d with DMCW=%d\n", mMinTableWidth, mMaxTableWidth, sumOfAdjustedColMinWidths); + if (gsDebug) printf("minTW=%d, maxTW=%d with DMCW=%d\n", mMinTableWidth, mMaxTableWidth, sumOfAdjustedColMinWidths); } // take the fixed space spanned by the columns in aColSpanList