void HTMLAreaElement::updateFocusAppearance(bool restorePreviousSelection) { if (!isFocusable()) return; HTMLImageElement* imageElement = this->imageElement(); if (!imageElement) return; imageElement->updateFocusAppearance(restorePreviousSelection); }
void HTMLAreaElement::updateFocusAppearance(SelectionRestorationMode restorationMode, SelectionRevealMode revealMode) { if (!isFocusable()) return; HTMLImageElement* imageElement = this->imageElement(); if (!imageElement) return; imageElement->updateFocusAppearance(restorationMode, revealMode); }
void HTMLAreaElement::updateFocusAppearance(bool restorePreviousSelection) { Node* parent = parentNode(); if (!parent || !parent->hasTagName(mapTag)) return; HTMLImageElement* imageElement = static_cast<HTMLMapElement*>(parent)->imageElement(); if (!imageElement) return; // This will handle scrolling to the image if necessary. imageElement->updateFocusAppearance(restorePreviousSelection); RenderObject* imageRenderer = imageElement->renderer(); if (imageRenderer) imageRenderer->setNeedsLayout(true); }