void HTMLDocument::setAlinkColor(const String& value) { HTMLElement* b = body(); HTMLBodyElement* bodyElement = (b && b->hasTagName(bodyTag)) ? static_cast<HTMLBodyElement*>(b) : 0; if (bodyElement) { // This check is a bit silly, but some benchmarks like to set the // document's link colors over and over to the same value and we // don't want to incur a style update each time. if (bodyElement->aLink() != value) bodyElement->setALink(value); } }