nsHTMLFrameInnerFrame* firstChild = NS_STATIC_CAST(nsHTMLFrameInnerFrame*, mFrames.FirstChild()); if (!firstChild)
nsCOMPtr<nsIContent> content; GetParentContent(getter_AddRefs(content));  if (!content) {
nsHTMLFrameOuterFrame::GetDocShell(nsIDocShell **aDocShell){  *aDocShell = nsnull;  nsHTMLFrameInnerFrame* firstChild = NS_STATIC_CAST(nsHTMLFrameInnerFrame*,                                                     mFrames.FirstChild());  if (!firstChild)     return NS_OK;  return firstChild->GetDocShell(aDocShell);}