rowIndex += numRows;
nsTableFrame::InsertRowGroups(nsIPresContext&  aPresContext,                              nsIFrame*        aFirstRowGroupFrame,                              PRInt32          aRowIndex){  nsTableCellMap* cellMap = GetCellMap();  if (cellMap) {    PRInt32 rowIndex = aRowIndex;    nsVoidArray rows;    for (nsIFrame* kidFrame = aFirstRowGroupFrame; kidFrame; kidFrame->GetNextSibling(&kidFrame)) {      nsTableRowGroupFrame* rgFrame = GetRowGroupFrame(kidFrame);      if (rgFrame) {        // create and add the cell map for the row group        cellMap->InsertGroupCellMap(rowIndex, *rgFrame);        // collect the new row frames in an array and add them to the table        PRInt32 numRows = CollectRows(&aPresContext, kidFrame, rows);        if (numRows > 0) {          InsertRows(aPresContext, *rgFrame, rows, rowIndex, PR_TRUE);          rowIndex += numRows;          rows.Clear();        }      }    }  }}