nsIFrame* rowFrame; aRowGroup->FirstChild(aPresContext, nsnull, &rowFrame); for ( ; rowFrame; rowFrame->GetNextSibling(&rowFrame)) { const nsStyleDisplay* rowDisplay; rowFrame->GetStyleData(eStyleStruct_Display, (const nsStyleStruct *&)rowDisplay); if (NS_STYLE_DISPLAY_TABLE_ROW==rowDisplay->mDisplay) {
nsIFrame* rowFrame = aRowGroup->GetFirstChild(nsnull); for ( ; rowFrame; rowFrame = rowFrame->GetNextSibling()) { if (NS_STYLE_DISPLAY_TABLE_ROW==rowFrame->GetStyleDisplay()->mDisplay) {
NS_IMETHODIMP nsTableFrame::AdjustRowIndices(nsIPresContext* aPresContext,                                             nsIFrame*       aRowGroup,                                              PRInt32         aRowIndex,                                             PRInt32         anAdjustment){  nsresult rv = NS_OK;  nsIFrame* rowFrame;  aRowGroup->FirstChild(aPresContext, nsnull, &rowFrame);  for ( ; rowFrame; rowFrame->GetNextSibling(&rowFrame)) {    const nsStyleDisplay* rowDisplay;    rowFrame->GetStyleData(eStyleStruct_Display, (const nsStyleStruct *&)rowDisplay);    if (NS_STYLE_DISPLAY_TABLE_ROW==rowDisplay->mDisplay) {      PRInt32 index = ((nsTableRowFrame*)rowFrame)->GetRowIndex();      if (index >= aRowIndex)        ((nsTableRowFrame *)rowFrame)->SetRowIndex(index+anAdjustment);    }  }  return rv;}