Index: Source/core/accessibility/AccessibilityMenuList.cpp |
diff --git a/Source/core/accessibility/AccessibilityMenuList.cpp b/Source/core/accessibility/AccessibilityMenuList.cpp |
index 46dd227a98eb3cfff580b669c6f38dbc3f9772a3..0cdb6c826234d6994b6a2291ece0072d6377e572 100644 |
--- a/Source/core/accessibility/AccessibilityMenuList.cpp |
+++ b/Source/core/accessibility/AccessibilityMenuList.cpp |
@@ -44,7 +44,7 @@ PassRefPtr<AccessibilityMenuList> AccessibilityMenuList::create(RenderMenuList* |
bool AccessibilityMenuList::press() const |
{ |
- RenderMenuList* menuList = static_cast<RenderMenuList*>(m_renderer); |
+ RenderMenuList* menuList = toRenderMenuList(m_renderer); |
if (menuList->popupIsVisible()) |
menuList->hidePopup(); |
else |
@@ -62,7 +62,7 @@ void AccessibilityMenuList::addChildren() |
if (!list) |
return; |
- static_cast<AccessibilityMockObject*>(list)->setParent(this); |
+ toAccessibilityMockObject(list)->setParent(this); |
if (list->accessibilityIsIgnored()) { |
cache->remove(list->axObjectID()); |
return; |
@@ -84,7 +84,7 @@ void AccessibilityMenuList::childrenChanged() |
bool AccessibilityMenuList::isCollapsed() const |
{ |
- return !static_cast<RenderMenuList*>(m_renderer)->popupIsVisible(); |
+ return !toRenderMenuList(m_renderer)->popupIsVisible(); |
} |
bool AccessibilityMenuList::canSetFocusAttribute() const |