else mAtEnd = PR_TRUE;
else { rgInFlow = rg; } } if (SetNewRow(rgInFlow->GetFirstRow(), rg->GetFirstRow())) { cellMap  = tableCellMap->GetMapFor(*rg); } if (rgInFlow && tableInFlow->GetPrevInFlow() && !rgInFlow->GetPrevInFlow()) {  const nsStyleDisplay* display; rgInFlow->GetStyleData(eStyleStruct_Display, (const nsStyleStruct *&)display); if (y == startY) { isRepeatedHeader = (NS_STYLE_DISPLAY_TABLE_HEADER_GROUP == display->mDisplay); } else { isRepeatedFooter = (NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP == display->mDisplay); }
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;}