| Index: Source/core/accessibility/AXObjectCache.cpp
|
| diff --git a/Source/core/accessibility/AXObjectCache.cpp b/Source/core/accessibility/AXObjectCache.cpp
|
| index 17fb379767942d826f81e73db134cb9961ce49e2..dfec8eb35fc1ef3983ce56deb5090c5b1993846f 100644
|
| --- a/Source/core/accessibility/AXObjectCache.cpp
|
| +++ b/Source/core/accessibility/AXObjectCache.cpp
|
| @@ -160,9 +160,9 @@ AccessibilityObject* AXObjectCache::focusedUIElementForPage(const Page* page)
|
| if (!focusedNode)
|
| focusedNode = focusedDocument;
|
|
|
| - if (focusedNode->hasTagName(areaTag))
|
| - return focusedImageMapUIElement(static_cast<HTMLAreaElement*>(focusedNode));
|
| -
|
| + if (isHTMLAreaElement(focusedNode))
|
| + return focusedImageMapUIElement(toHTMLAreaElement(focusedNode));
|
| +
|
| AccessibilityObject* obj = focusedNode->document()->axObjectCache()->getOrCreate(focusedNode);
|
| if (!obj)
|
| return 0;
|
|
|