HTMLStyleSheetImpl::InitializeScrollFrame(nsIFrame *            scrollFrame, nsIPresContext*       aPresContext, nsIContent*           aContent, nsIFrame*             aParentFrame, nsIStyleContext*      aStyleContext, nsAbsoluteItems&      aAbsoluteItems, nsIFrame*&            aNewFrame, PRBool                isAbsolutelyPositioned, PRBool                aCreateBlock)
HTMLStyleSheetImpl::InitializeScrollFrame(nsIFrame*        scrollFrame, nsIPresContext*  aPresContext, nsIContent*      aContent, nsIFrame*        aParentFrame, nsIStyleContext* aStyleContext, nsAbsoluteItems& aAbsoluteItems, nsIFrame*&       aNewFrame, nsAbsoluteItems& aFixedItems, PRBool           isAbsolutelyPositioned, PRBool           aCreateBlock)
HTMLStyleSheetImpl::InitializeScrollFrame(nsIFrame *            scrollFrame,                                          nsIPresContext*       aPresContext,                                          nsIContent*           aContent,                                          nsIFrame*             aParentFrame,                                          nsIStyleContext*      aStyleContext,                                          nsAbsoluteItems&      aAbsoluteItems,                                          nsIFrame*&            aNewFrame,                                          PRBool                isAbsolutelyPositioned,                                          PRBool                aCreateBlock){    // Initialize it    nsIFrame* geometricParent = isAbsolutelyPositioned ? aAbsoluteItems.containingBlock :                                                         aParentFrame;    scrollFrame->Init(*aPresContext, aContent, geometricParent, aStyleContext);    // The scroll frame gets the original style context, and the scrolled    // frame gets a SCROLLED-CONTENT pseudo element style context that    // inherits the background properties    nsIStyleContext*  scrolledPseudoStyle = aPresContext->ResolvePseudoStyleContextFor                        (aContent, nsHTMLAtoms::scrolledContentPseudo, aStyleContext);    // Create an area container for the frame    nsIFrame* scrolledFrame;    NS_NewAreaFrame(scrolledFrame, NS_BLOCK_SHRINK_WRAP);    // Initialize the frame and force it to have a view    scrolledFrame->Init(*aPresContext, aContent, scrollFrame, scrolledPseudoStyle);    nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, scrolledFrame,                                             scrolledPseudoStyle, PR_TRUE);    NS_RELEASE(scrolledPseudoStyle);    // Process children    if (isAbsolutelyPositioned) {      // The area frame becomes a container for child frames that are      // absolutely positioned      nsAbsoluteItems  absoluteItems(scrolledFrame);      nsFrameItems  childItems;      ProcessChildren(aPresContext, aContent, scrolledFrame, absoluteItems,                      childItems);        // Set the initial child lists      scrolledFrame->SetInitialChildList(*aPresContext, nsnull, childItems.childList);      if (nsnull != absoluteItems.childList) {        scrolledFrame->SetInitialChildList(*aPresContext, nsLayoutAtoms::absoluteList,                                           absoluteItems.childList);      }    } else {      nsFrameItems childItems;      ProcessChildren(aPresContext, aContent, scrolledFrame, aAbsoluteItems,                      childItems);        // Set the initial child lists      scrolledFrame->SetInitialChildList(*aPresContext, nsnull, childItems.childList);    }    scrollFrame->SetInitialChildList(*aPresContext, nsnull, scrolledFrame);    aNewFrame = scrollFrame;    return NS_OK;}