Index: Source/core/rendering/RenderMenuList.cpp |
diff --git a/Source/core/rendering/RenderMenuList.cpp b/Source/core/rendering/RenderMenuList.cpp |
index bb7451e7499be6aef269f8ea39bbff648c4a7cf8..df13d20cc8e101ba41f924fa1ba5e3c83c1241e1 100644 |
--- a/Source/core/rendering/RenderMenuList.cpp |
+++ b/Source/core/rendering/RenderMenuList.cpp |
@@ -388,7 +388,7 @@ void RenderMenuList::didUpdateActiveOption(int optionIndex) |
HTMLElement* listItem = select->listItems()[listIndex]; |
ASSERT(listItem); |
if (listItem->attached()) { |
- if (AccessibilityMenuList* menuList = static_cast<AccessibilityMenuList*>(document().axObjectCache()->get(this))) |
+ if (AccessibilityMenuList* menuList = toAccessibilityMenuList(document().axObjectCache()->get(this))) |
menuList->didUpdateActiveOption(optionIndex); |
} |
} |