String HTMLDocument::vlinkColor() { HTMLElement* b = body(); HTMLBodyElement* bodyElement = (b && b->hasTagName(bodyTag)) ? static_cast<HTMLBodyElement*>(b) : 0; if (!bodyElement) return String(); return bodyElement->vLink(); }
void HTMLDocument::setVlinkColor(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->vLink() != value) bodyElement->setVLink(value); } }