if ((nsnull != mRef) && (nsnull == mRefContent)) { nsHTMLValue value; aContent->GetHTMLAttribute(nsHTMLAtoms::name, value); if (eHTMLUnit_String == value.GetUnit()) { nsAutoString tmp; value.GetStringValue(tmp); if (mRef->EqualsIgnoreCase(tmp)) {  mRefContent = aContent; NS_ADDREF(aContent); } } }
HTMLContentSink::ProcessATag(const nsIParserNode& aNode,                             nsIHTMLContent* aContent){  AddBaseTagInfo(aContent);  if ((nsnull != mRef) && (nsnull == mRefContent)) {    nsHTMLValue value;    aContent->GetHTMLAttribute(nsHTMLAtoms::name, value);    if (eHTMLUnit_String == value.GetUnit()) {      nsAutoString tmp;      value.GetStringValue(tmp);      if (mRef->EqualsIgnoreCase(tmp)) {        // Winner. We just found the content that is the named anchor        mRefContent = aContent;        NS_ADDREF(aContent);      }    }  }  return NS_OK;}