result = GetDocument(*getter_AddRefs(document));
result = GetDocument(getter_AddRefs(document));
nsHTMLTitleElement::SetText(const nsAString& aTitle){  nsresult result = NS_OK;  nsCOMPtr<nsIDOMNode> child;  nsCOMPtr<nsIDocument> document;  result = GetDocument(*getter_AddRefs(document));  if (NS_OK == result) {    nsCOMPtr<nsIDOMHTMLDocument> htmlDoc(do_QueryInterface(document));    if (htmlDoc) {      htmlDoc->SetTitle(aTitle);    }     }  result = GetFirstChild(getter_AddRefs(child));  if ((NS_OK == result) && child) {    nsCOMPtr<nsIDOMText> text(do_QueryInterface(child));        if (text) {      text->SetData(aTitle);    }  }  return result;}