mRowGroupIndex++; PRInt32 numRowGroups = mRowGroups.Count(); for (PRInt32 rgX = mRowGroupIndex; (rgX < numRowGroups) && !mAtEnd; rgX++) { nsIFrame* frame = (nsTableRowGroupFrame*)mRowGroups.ElementAt(mRowGroupIndex); if (!frame) ABORT1(PR_FALSE); mRowGroup = mTableFrame.GetRowGroupFrame(frame); if (!mRowGroup) ABORT1(PR_FALSE); mRowGroupStart = mRowGroup->GetStartRowIndex(); mRowGroupEnd   = mRowGroupStart + mRowGroup->GetRowCount() - 1; if (mRowGroupEnd >= 0) { mCellMap  = mTableCellMap->GetMapFor(*mRowGroup); if (SetNewRow(mRowGroup->GetFirstRow())) { return PR_TRUE;
rowGroupIndex++;  isRepeatedHeader = PR_FALSE; isRepeatedFooter = PR_FALSE;  if (rowGroupIndex < rowGroups.Count()) { prevRg = rg; nsIFrame* frame = (nsTableRowGroupFrame*)rowGroups.ElementAt(rowGroupIndex); if (!frame) ABORT1(PR_FALSE); rg = table->GetRowGroupFrame(frame); if (!rg) ABORT1(PR_FALSE); rowGroupStart = rg->GetStartRowIndex(); rowGroupEnd   = rowGroupStart + rg->GetRowCount() - 1;  if (aSetInFlow) { if (rgInFlow && tableInFlow->GetPrevInFlow()) {   nsIFrame* frame  = nsnull; nsIFrame* parent = nsnull; rgInFlow->GetParent(&parent); if (parent == tableInFlow) { rgInFlow->GetNextSibling(&frame); } else if (parent) { parent->GetNextSibling(&frame); } rgInFlow = table->GetRowGroupFrame(frame); if (!rgInFlow) { atEnd = PR_TRUE; ABORT1(PR_FALSE); }
BCMapCellIterator::SetNewRowGroup(){  mRowGroupIndex++;  PRInt32 numRowGroups = mRowGroups.Count();  for (PRInt32 rgX = mRowGroupIndex; (rgX < numRowGroups) && !mAtEnd; rgX++) {    nsIFrame* frame = (nsTableRowGroupFrame*)mRowGroups.ElementAt(mRowGroupIndex); if (!frame) ABORT1(PR_FALSE);    mRowGroup = mTableFrame.GetRowGroupFrame(frame); if (!mRowGroup) ABORT1(PR_FALSE);    mRowGroupStart = mRowGroup->GetStartRowIndex();    mRowGroupEnd   = mRowGroupStart + mRowGroup->GetRowCount() - 1;    if (mRowGroupEnd >= 0) {       mCellMap  = mTableCellMap->GetMapFor(*mRowGroup);      if (SetNewRow(mRowGroup->GetFirstRow())) {        return PR_TRUE;      }      else mAtEnd = PR_TRUE;    }  }  mAtEnd = PR_TRUE;  return !mAtEnd;}