if (!frame) return nsnull;
nsOutlinerBoxObject::GetOutlinerBody(){  nsAutoString outlinerbody; outlinerbody.AssignWithConversion("outlinerbody");  nsCOMPtr<nsISupports> supp;  GetPropertyAsSupports(outlinerbody.get(), getter_AddRefs(supp));  if (supp) {    nsCOMPtr<nsIOutlinerBoxObject> body(do_QueryInterface(supp));    return body;  }  nsIFrame* frame = GetFrame();  if (!frame)    return nsnull;  // Iterate over our content model children looking for the body.  nsCOMPtr<nsIContent> startContent;  frame->GetContent(getter_AddRefs(startContent));  nsCOMPtr<nsIContent> content;  FindBodyElement(startContent, getter_AddRefs(content));  mPresShell->GetPrimaryFrameFor(content, &frame);  // It's a frame. Refcounts are irrelevant.  nsCOMPtr<nsIOutlinerBoxObject> body;  frame->QueryInterface(NS_GET_IID(nsIOutlinerBoxObject), getter_AddRefs(body));  SetPropertyAsSupports(outlinerbody.get(), body);  return body;}