SetInitialChildList(nsPresContext* aPresContext, nsIAtom*        aListName, nsIFrame*       aChildList) { nsresult rv = nsBlockFrame::SetInitialChildList(aPresContext, aListName, aChildList);  nsMathMLContainerFrame::MapAttributesIntoCSS(aPresContext, this); nsMathMLContainerFrame::RebuildAutomaticDataForChildren(aPresContext, this); return rv;
nsMathMLContainerFrame::SetInitialChildList(nsIPresContext* aPresContext, nsIAtom*        aListName, nsIFrame*       aChildList) {  nsresult rv; rv = nsHTMLContainerFrame::SetInitialChildList(aPresContext, aListName, aChildList);                  nsIFrame* next = mFrames.FirstChild(); while (next) { nsIFrame* child = next; next->GetNextSibling(&next); nsInlineFrame* inlineFrame = nsnull; nsresult res = child->QueryInterface(nsInlineFrame::kInlineFrameCID, (void**)&inlineFrame); if (NS_SUCCEEDED(res) && inlineFrame) {  nsCOMPtr<nsIPresShell> shell; aPresContext->GetShell(getter_AddRefs(shell)); nsIFrame* anonymous; rv = NS_NewBlockFrame(shell, &anonymous); if (NS_FAILED(rv)) return rv; nsCOMPtr<nsIStyleContext> newStyleContext; aPresContext->ResolvePseudoStyleContextFor(mContent, nsHTMLAtoms::mozAnonymousBlock, mStyleContext, PR_FALSE, getter_AddRefs(newStyleContext)); rv = anonymous->Init(aPresContext, mContent, this, newStyleContext, nsnull); if (NS_FAILED(rv)) { anonymous->Destroy(aPresContext); return rv; } mFrames.ReplaceFrame(this, child, anonymous); child->SetParent(anonymous); child->SetNextSibling(nsnull); aPresContext->ReParentStyleContext(child, newStyleContext); anonymous->SetInitialChildList(aPresContext, nsnull, child); }
  SetInitialChildList(nsPresContext* aPresContext,                      nsIAtom*        aListName,                      nsIFrame*       aChildList)  {    nsresult rv = nsBlockFrame::SetInitialChildList(aPresContext, aListName, aChildList);    // re-resolve our subtree to set any mathml-expected data    nsMathMLContainerFrame::MapAttributesIntoCSS(aPresContext, this);    nsMathMLContainerFrame::RebuildAutomaticDataForChildren(aPresContext, this);    return rv;  }