nsIFrame*        aFrame)
nsIFrame*        aFrameIn)
DoCleanupFrameReferences(nsIPresContext*  aPresContext,                         nsIFrameManager* aFrameManager,                         nsIFrame*        aFrame){  nsCOMPtr<nsIContent> content;  aFrame->GetContent(getter_AddRefs(content));    // Remove the mapping from the content object to its frame  aFrameManager->SetPrimaryFrameFor(content, nsnull);  aFrame->RemovedAsPrimaryFrame(aPresContext);  aFrameManager->ClearAllUndisplayedContentIn(content);  // Recursively walk the child frames.  // Note: we only need to look at the principal child list  nsIFrame* childFrame;  aFrame->FirstChild(aPresContext, nsnull, &childFrame);  while (childFrame) {    DoCleanupFrameReferences(aPresContext, aFrameManager, childFrame);        // Get the next sibling child frame    childFrame->GetNextSibling(&childFrame);  }}