fixed cellspacing and cellpadding handling

default cellspacing and cellpadding now comes from the table frame itself
other frames on longer look at the "tableStyle" struct for these values
This commit is contained in:
buster@netscape.com
1998-12-05 05:27:21 +00:00
parent 4ce0174e9f
commit b0e257c82e
10 changed files with 164 additions and 72 deletions
@@ -261,11 +261,7 @@ PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths()
maxColWidthArray = new PRInt32[mNumCols];
}
const nsStyleTable* tableStyle;
mTableFrame->GetStyleData(eStyleStruct_Table, (const nsStyleStruct*&)tableStyle);
nscoord cellPadding=0;
if (eStyleUnit_Coord==tableStyle->mCellPadding.GetUnit())
cellPadding=tableStyle->mCellPadding.GetCoordValue();
nscoord cellPadding=mTableFrame->GetCellPadding();
if (gsDebug) printf ("table cell padding = %d\n", cellPadding);
PRInt32 numRows = mTableFrame->GetRowCount();