nsHTMLAnchorElement::SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, nsIAtom* aPrefix, const nsAString& aValue, PRBool aNotify) { if (aName == nsHTMLAtoms::href && kNameSpaceID_None == aNameSpaceID) { nsAutoString val; GetHref(val); if (!val.Equals(aValue)) { SetLinkState(eLinkState_Unknown); }
nsresult SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName, const nsAString& aValue, PRBool aNotify) { return SetAttr(aNameSpaceID, aName, nsnull, aValue, aNotify);
nsHTMLAnchorElement::SetAttr(PRInt32 aNameSpaceID, nsIAtom* aName,                             nsIAtom* aPrefix, const nsAString& aValue,                             PRBool aNotify){  if (aName == nsHTMLAtoms::href && kNameSpaceID_None == aNameSpaceID) {    nsAutoString val;    GetHref(val);    if (!val.Equals(aValue)) {      SetLinkState(eLinkState_Unknown);    }  }  if (aName == nsHTMLAtoms::accesskey && kNameSpaceID_None == aNameSpaceID) {    RegUnRegAccessKey(PR_FALSE);  }  nsresult rv = nsGenericHTMLElement::SetAttr(aNameSpaceID, aName, aPrefix,                                              aValue, aNotify);  if (aName == nsHTMLAtoms::accesskey && kNameSpaceID_None == aNameSpaceID &&      !aValue.IsEmpty()) {    RegUnRegAccessKey(PR_TRUE);  }  return rv;}