Index: Source/core/rendering/RenderImage.cpp |
diff --git a/Source/core/rendering/RenderImage.cpp b/Source/core/rendering/RenderImage.cpp |
index 7f126f87d9f0432541b70de4ab1740867c786185..25f505f955d24a810be5e878f86a037dace2068c 100644 |
--- a/Source/core/rendering/RenderImage.cpp |
+++ b/Source/core/rendering/RenderImage.cpp |
@@ -397,10 +397,10 @@ void RenderImage::paintAreaElementFocusRing(PaintInfo& paintInfo) |
return; |
Node* focusedNode = document->focusedNode(); |
- if (!focusedNode || !focusedNode->hasTagName(areaTag)) |
+ if (!focusedNode || !isHTMLAreaElement(focusedNode)) |
return; |
- HTMLAreaElement* areaElement = static_cast<HTMLAreaElement*>(focusedNode); |
+ HTMLAreaElement* areaElement = toHTMLAreaElement(focusedNode); |
if (areaElement->imageElement() != node()) |
return; |