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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user