Index: Source/core/html/HTMLAreaElement.cpp |
diff --git a/Source/core/html/HTMLAreaElement.cpp b/Source/core/html/HTMLAreaElement.cpp |
index 65056c23778d2df003c46a4eaed2b89eb14bbcb2..e224047fb1cb264b23e82aa418d97492fd7f2421 100644 |
--- a/Source/core/html/HTMLAreaElement.cpp |
+++ b/Source/core/html/HTMLAreaElement.cpp |
@@ -192,7 +192,7 @@ bool HTMLAreaElement::isMouseFocusable() const |
bool HTMLAreaElement::rendererIsFocusable() const |
{ |
HTMLImageElement* image = imageElement(); |
- if (!image || !image->renderer() || image->renderer()->style()->visibility() != VISIBLE) |
+ if (!image || !image->layoutObject() || image->layoutObject()->style()->visibility() != VISIBLE) |
return false; |
return supportsFocus() && Element::tabIndex() >= 0; |
@@ -209,7 +209,7 @@ void HTMLAreaElement::setFocus(bool shouldBeFocused) |
if (!imageElement) |
return; |
- LayoutObject* renderer = imageElement->renderer(); |
+ LayoutObject* renderer = imageElement->layoutObject(); |
if (!renderer || !renderer->isImage()) |
return; |