just documentation

This commit is contained in:
buster@netscape.com
1999-01-07 02:16:10 +00:00
parent 98ea176213
commit 2cc9b7df8b
4 changed files with 74 additions and 54 deletions

View File

@@ -35,12 +35,12 @@ static PRBool gsDebug = PR_FALSE;
static const PRBool gsDebug = PR_FALSE;
#endif
const nscoord gBigSpace = 100000;
const nscoord gBigSpace = 100000; // a fudge constant used when the table is laid out with unconstrained width
/* ---------- ProportionalColumnLayoutStruct ---------- */
// TODO: make public so other subclasses can use it
/** useful info about a column for layout */
/** useful info about a column for layout of tables with colspans */
struct ProportionalColumnLayoutStruct
{
ProportionalColumnLayoutStruct(PRInt32 aColIndex,
@@ -62,6 +62,7 @@ struct ProportionalColumnLayoutStruct
/* ---------- ColSpanStruct ---------- */
/** useful info about a column for layout of tables with colspans */
struct ColSpanStruct
{
PRInt32 colIndex;
@@ -851,6 +852,9 @@ PRBool BasicTableLayoutStrategy::BalanceProportionalColumns(const nsHTMLReflowSt
if (NS_UNCONSTRAINEDSIZE==aMaxWidth || NS_UNCONSTRAINEDSIZE==mMinTableWidth)
{ // the max width of the table fits comfortably in the available space
if (gsDebug) printf (" * table laying out in NS_UNCONSTRAINEDSIZE, calling BalanceColumnsTableFits\n");
// nested tables are laid out with unconstrained width. But the underlying algorithms require a
// real width. So we pick a really big width here. It doesn't really matter, of course, because
// eventually the table will be laid out with a constrained width.
nscoord bigSpace = gBigSpace;
bigSpace = PR_MAX(bigSpace, mMaxTableWidth);
result = BalanceColumnsTableFits(aReflowState, bigSpace,