return mContentFrame->RemoveFrame (aPresContext, aPresShell, aListName, aOldFrame);
if (aOldFrame == mLegendFrame) { #ifdef DEBUG nsIFrame* sibling; mContentFrame->GetNextSibling(&sibling); NS_ASSERTION(sibling == mLegendFrame, "legendFrame is not next sibling"); nsIFrame* legendParent; mLegendFrame->GetParent(&legendParent); NS_ASSERTION(legendParent == this, "Legend Parent has wrong parent"); #endif nsIFrame* legendSibling; sibling->GetNextSibling(&legendSibling);  mContentFrame->SetNextSibling(legendSibling);  mLegendFrame->Destroy(aPresContext); mLegendFrame = nsnull; return NS_OK; } else { return mContentFrame->RemoveFrame (aPresContext, aPresShell, aListName, aOldFrame); }
nsFieldSetFrame::RemoveFrame(nsIPresContext* aPresContext,                     nsIPresShell&   aPresShell,                     nsIAtom*        aListName,                     nsIFrame*       aOldFrame){  return mContentFrame->RemoveFrame (aPresContext,                                     aPresShell,                                     aListName,                                     aOldFrame);}