return firstChild->GetDocShell(aDocShell);
if (!mFrameLoader) { nsCOMPtr<nsIFrameLoaderOwner> frame_loader_owner = do_QueryInterface(content);  if (frame_loader_owner) { frame_loader_owner->GetFrameLoader(getter_AddRefs(mFrameLoader)); }  if (!mFrameLoader) { nsresult rv = NS_OK;   mFrameLoader = do_CreateInstance(NS_FRAMELOADER_CONTRACTID, &rv); NS_ENSURE_SUCCESS(rv, rv);   mOwnsFrameLoader = PR_TRUE;   mFrameLoader->Init(content);   rv = mFrameLoader->LoadFrame(); NS_ENSURE_SUCCESS(rv, rv); } }  return mFrameLoader->GetDocShell(aDocShell);
nsHTMLFrameOuterFrame::GetDocShell(nsIDocShell **aDocShell){  *aDocShell = nsnull;  nsHTMLFrameInnerFrame* firstChild = NS_STATIC_CAST(nsHTMLFrameInnerFrame*,                                                     mFrames.FirstChild());  if (!firstChild)     return NS_OK;  return firstChild->GetDocShell(aDocShell);}