tableWidth += GetHorBorderPaddingWidth(aReflowState, this); }
PRBool isPctWidth = PR_FALSE; nscoord compWidth = aReflowState.mComputedWidth; if (!IsAutoWidth(&isPctWidth) && (NS_UNCONSTRAINEDSIZE != compWidth) && !isPctWidth) tableWidth = PR_MAX(tableWidth, compWidth);   nsMargin childOffset = GetChildAreaOffset(&aReflowState); tableWidth += childOffset.left + childOffset.right;
nsTableFrame::CalcDesiredWidth(const nsHTMLReflowState& aReflowState){  NS_ASSERTION(!mPrevInFlow, "never ever call me on a continuing frame!");  nsTableCellMap* cellMap = GetCellMap();  if (!cellMap) {    NS_ASSERTION(PR_FALSE, "never ever call me until the cell map is built!");    return 0;  }  nscoord cellSpacing = GetCellSpacingX();  PRInt32 tableWidth  = 0;  PRInt32 numCols = GetColCount();  for (PRInt32 colIndex = 0; colIndex < numCols; colIndex++) {    nscoord totalColWidth = GetColumnWidth(colIndex);    if (GetNumCellsOriginatingInCol(colIndex) > 0) { // skip degenerate cols      totalColWidth += cellSpacing;           // add cell spacing to left of col    }    tableWidth += totalColWidth;  }  if (numCols > 0) {    tableWidth += cellSpacing; // add last cellspacing    // Compute the insets (sum of border and padding)    tableWidth += GetHorBorderPaddingWidth(aReflowState, this);  }   return tableWidth;}