scrollFrame->SetInitialChildList(*aPresContext, nsnull, wrapperFrame);
HTMLStyleSheetImpl::ConstructXMLRootDescendants(nsIPresContext*  aPresContext,                                                nsIContent*      aContent,                                                nsIStyleContext* aRootPseudoStyle,                                                nsIFrame*        aParentFrame,                                                nsIFrame*&       aNewFrame){  nsresult rv = NS_OK;  // Create a scroll frame.  // XXX Use the rootPseudoStyle overflow style information to decide whether  // we create a scroll frame or just a body wrapper frame...  nsIFrame* scrollFrame = nsnull;    rv = NS_NewScrollFrame(scrollFrame);  if (NS_SUCCEEDED(rv)) {    // Initialize the scroll frame    scrollFrame->Init(*aPresContext, nsnull, aParentFrame, aRootPseudoStyle);        // The scroll frame gets the root pseudo style context, and the scrolled    // frame gets a SCROLLED-CONTENT pseudo element style context.    nsIStyleContext*  scrolledPseudoStyle;    nsIFrame*         wrapperFrame;        scrolledPseudoStyle = aPresContext->ResolvePseudoStyleContextFor      (nsnull, nsHTMLAtoms::scrolledContentPseudo,       aRootPseudoStyle);        // Create a body frame to wrap the document element    NS_NewBodyFrame(wrapperFrame, NS_BODY_THE_BODY|NS_BODY_SHRINK_WRAP);    // Initialize it and force it to have a view    wrapperFrame->Init(*aPresContext, nsnull, scrollFrame, scrolledPseudoStyle);    nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, wrapperFrame,                                             scrolledPseudoStyle, PR_TRUE);        // Construct a frame for the document element and process its children    nsIFrame* docElementFrame;    ConstructFrame(aPresContext, aContent, wrapperFrame, docElementFrame);    wrapperFrame->SetInitialChildList(*aPresContext, nsnull, docElementFrame);        // Set the scroll frame's initial child list    scrollFrame->SetInitialChildList(*aPresContext, nsnull, wrapperFrame);  }  aNewFrame = scrollFrame;  return rv;}