if (aOldFrame == mLegendFrame) {
if (aOldFrame == mLegendFrame) { NS_ASSERTION(!aListName, "Unexpected frame list when removing legend frame");
nsFieldSetFrame::RemoveFrame(nsPresContext* aPresContext,                     nsIPresShell&   aPresShell,                     nsIAtom*        aListName,                     nsIFrame*       aOldFrame){  // XXX XXX  // XXX temporary fix for bug 70648  if (aOldFrame == mLegendFrame) {       NS_ASSERTION(mLegendFrame->GetParent() == this, "Legend Parent has wrong parent");    NS_ASSERTION(mLegendFrame->GetNextSibling() == mContentFrame, "mContentFrame is not next sibling");    mFrames.DestroyFrame(aPresContext, mLegendFrame);    mLegendFrame = nsnull;    return NS_OK;  } else {    return mContentFrame->RemoveFrame (aPresContext,                                       aPresShell,                                       aListName,                                       aOldFrame);  }}