const nsStyleTable* tableStyle; GetStyleData(eStyleStruct_Table, (const nsStyleStruct *&)tableStyle); nscoord cellSpacing = 0; PRUint8 borderCollapseStyle = GetBorderCollapseStyle(); if (NS_STYLE_BORDER_COLLAPSE != borderCollapseStyle) { if (tableStyle->mBorderSpacingX.GetUnit() == eStyleUnit_Coord) { cellSpacing = tableStyle->mBorderSpacingX.GetCoordValue(); } } return cellSpacing;
if (IsBorderCollapse()) return 0;  NS_ASSERTION(GetStyleTableBorder()->mBorderSpacingX.GetUnit() == eStyleUnit_Coord, "Not a coord value!"); return GetStyleTableBorder()->mBorderSpacingX.GetCoordValue();
nscoord nsTableFrame::GetCellSpacingX(){  const nsStyleTable* tableStyle;  GetStyleData(eStyleStruct_Table, (const nsStyleStruct *&)tableStyle);  nscoord cellSpacing = 0;  PRUint8 borderCollapseStyle = GetBorderCollapseStyle();  if (NS_STYLE_BORDER_COLLAPSE != borderCollapseStyle) {    if (tableStyle->mBorderSpacingX.GetUnit() == eStyleUnit_Coord) {      cellSpacing = tableStyle->mBorderSpacingX.GetCoordValue();    }  }  return cellSpacing;}