mOwnerContent->GetDocument(*getter_AddRefs(doc));
mOwnerContent->GetDocument(getter_AddRefs(doc));
nsFrameLoader::GetPresContext(nsIPresContext **aPresContext){  *aPresContext = nsnull;  nsCOMPtr<nsIDocument> doc;  mOwnerContent->GetDocument(*getter_AddRefs(doc));  while (doc) {    nsCOMPtr<nsIPresShell> presShell;    doc->GetShellAt(0, getter_AddRefs(presShell));    if (presShell) {      presShell->GetPresContext(aPresContext);      return NS_OK;    }    nsCOMPtr<nsIDocument> parent;    doc->GetParentDocument(getter_AddRefs(parent));    doc = parent;  }  return NS_OK;}