nsHTMLBodyElement::GetVLink(nsAString& aVlinkColor) { nsresult rv = GetAttr(kNameSpaceID_None, nsHTMLAtoms::vlink, aVlinkColor);    if (rv == NS_CONTENT_ATTR_NOT_THERE) { nsCOMPtr<nsIPresContext> context; GetPresContext(this, getter_AddRefs(context));  if (context) { nscolor vlinkColor; context->GetDefaultVisitedLinkColor(&vlinkColor);  nsHTMLValue value(vlinkColor); ColorToString(value, aVlinkColor); } }  return NS_OK; }
NS_IMPL_HTMLBODY_COLOR_ATTR(vlink, VLink, VisitedLinkColor)
nsHTMLBodyElement::GetVLink(nsAString& aVlinkColor){  nsresult rv = GetAttr(kNameSpaceID_None, nsHTMLAtoms::vlink, aVlinkColor);  // If we don't have an attribute, find the default color from the  // UA stylesheet.  if (rv == NS_CONTENT_ATTR_NOT_THERE) {    nsCOMPtr<nsIPresContext> context;    GetPresContext(this, getter_AddRefs(context));    if (context) {      nscolor vlinkColor;      context->GetDefaultVisitedLinkColor(&vlinkColor);      nsHTMLValue value(vlinkColor);      ColorToString(value, aVlinkColor);    }  }  return NS_OK;}