Index: Source/core/accessibility/AccessibilityRenderObject.cpp |
diff --git a/Source/core/accessibility/AccessibilityRenderObject.cpp b/Source/core/accessibility/AccessibilityRenderObject.cpp |
index e70aaf1d761db15dbcc9634d52eac35e69b0e0db..37b940232fa015d4f7754106cae7dba67b06eb7e 100644 |
--- a/Source/core/accessibility/AccessibilityRenderObject.cpp |
+++ b/Source/core/accessibility/AccessibilityRenderObject.cpp |
@@ -2216,7 +2216,7 @@ void AccessibilityRenderObject::addImageMapChildren() |
for (Element* current = ElementTraversal::firstWithin(map); current; current = ElementTraversal::next(current, map)) { |
// add an <area> element for this child if it has a link |
if (isHTMLAreaElement(current) && current->isLink()) { |
- AccessibilityImageMapLink* areaObject = static_cast<AccessibilityImageMapLink*>(axObjectCache()->getOrCreate(ImageMapLinkRole)); |
+ AccessibilityImageMapLink* areaObject = toAccessibilityImageMapLink(axObjectCache()->getOrCreate(ImageMapLinkRole)); |
areaObject->setHTMLAreaElement(toHTMLAreaElement(current)); |
areaObject->setHTMLMapElement(map); |
areaObject->setParent(this); |