nsCOMPtr<nsIXTFVisualWrapperPrivate> visual = do_QueryInterface(mContent); NS_ASSERTION(visual, "huh? associated content not implementing nsIXTFVisualWrapperPrivate");  nsCOMPtr<nsIDOMElement> childInsertionPoint; visual->GetInsertionPoint(getter_AddRefs(childInsertionPoint)); if (!childInsertionPoint) return nsnull;  nsCOMPtr<nsIContent> content = do_QueryInterface(childInsertionPoint); NS_ASSERTION(content, "element not implementing nsIContent!?");  nsIFrame* insertionFrame = nsnull; GetPresContext()->PresShell()->GetPrimaryFrameFor(content, &insertionFrame); return insertionFrame;
return nsXTFFrameUtils::GetContentInsertionFrame(this);
nsXTFXMLBlockDisplayFrame::GetContentInsertionFrame(){  nsCOMPtr<nsIXTFVisualWrapperPrivate> visual = do_QueryInterface(mContent);  NS_ASSERTION(visual, "huh? associated content not implementing nsIXTFVisualWrapperPrivate");    nsCOMPtr<nsIDOMElement> childInsertionPoint;  visual->GetInsertionPoint(getter_AddRefs(childInsertionPoint));  if (!childInsertionPoint) return nsnull; // we don't take visual child content    nsCOMPtr<nsIContent> content = do_QueryInterface(childInsertionPoint);  NS_ASSERTION(content, "element not implementing nsIContent!?");  nsIFrame* insertionFrame = nsnull;  GetPresContext()->PresShell()->GetPrimaryFrameFor(content, &insertionFrame);  return insertionFrame;}