NS_IMETHODIMP nsFieldSetFrame::AppendFrames(nsIAtom* aListName, nsIFrame* aFrameList) { aFrameList = MaybeSetLegend(aFrameList, aListName); if (aFrameList) { ReParentFrameList(aFrameList); return mContentFrame->AppendFrames(aListName, aFrameList); } return NS_OK; }