mNodeInfo->GetDocument(*getter_AddRefs(doc));
mNodeInfo->GetDocument(getter_AddRefs(doc));
nsHTMLAreaElement::GetProtocol(nsAString& aProtocol){  nsAutoString href;    nsresult rv = GetHref(href);  if (NS_FAILED(rv))    return rv;  nsCOMPtr<nsIDocument> doc;  mNodeInfo->GetDocument(*getter_AddRefs(doc));  return GetProtocolFromHrefString(href, aProtocol, doc);}