Index: third_party/WebKit/Source/core/html/HTMLAreaElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp |
index 82d63475d7cedb4a634f196299e06b11dd50066d..19d45c8b1a51552cd378c741ff66366821457225 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp |
@@ -222,16 +222,13 @@ void HTMLAreaElement::setFocus(bool shouldBeFocused) |
toLayoutImage(layoutObject)->areaElementFocusChanged(this); |
} |
-void HTMLAreaElement::updateFocusAppearance(bool restorePreviousSelection) |
+void HTMLAreaElement::updateFocusAppearance(SelectionBehaviorOnFocus selectionBehavior) |
{ |
if (!isFocusable()) |
return; |
- HTMLImageElement* imageElement = this->imageElement(); |
- if (!imageElement) |
- return; |
- |
- imageElement->updateFocusAppearance(restorePreviousSelection); |
+ if (HTMLImageElement* imageElement = this->imageElement()) |
+ imageElement->updateFocusAppearance(selectionBehavior); |
} |
} |