GetBaseURL(*getter_AddRefs(baseURL));
GetBaseURL(getter_AddRefs(baseURL));
nsHTMLAreaElement::GetHrefCString(char* &aBuf){  // Get href= attribute (relative URL).  nsAutoString relURLSpec;  if (GetAttr(kNameSpaceID_None, nsHTMLAtoms::href, relURLSpec) ==      NS_CONTENT_ATTR_HAS_VALUE) {    // Clean up any leading or trailing whitespace    relURLSpec.Trim(" \t\n\r");    // Get base URL.    nsCOMPtr<nsIURI> baseURL;    GetBaseURL(*getter_AddRefs(baseURL));    if (baseURL) {      // Get absolute URL.      nsCAutoString buf;      NS_MakeAbsoluteURIWithCharset(buf, relURLSpec, mDocument, baseURL,                                    nsHTMLUtils::IOService, nsHTMLUtils::CharsetMgr);      aBuf = ToNewCString(buf);    }    else {      // Absolute URL is same as relative URL.      aBuf = ToNewUTF8String(relURLSpec);    }  }  else {    // Absolute URL is empty because we have no HREF.    aBuf = nsnull;  }  return NS_OK;}