Index: Source/core/accessibility/AXListBox.cpp |
diff --git a/Source/core/accessibility/AXListBox.cpp b/Source/core/accessibility/AXListBox.cpp |
index 432302b6c8c5f40d578fad7690b343ce762e8c1a..369283a644fe999e39a2cb0857492d63515dd7b5 100644 |
--- a/Source/core/accessibility/AXListBox.cpp |
+++ b/Source/core/accessibility/AXListBox.cpp |
@@ -84,35 +84,4 @@ AXObject* AXListBox::listBoxOptionAXObject(HTMLElement* element) const |
return listBoxObject; |
} |
-AXObject* AXListBox::elementAccessibilityHitTest(const IntPoint& point) const |
-{ |
- // the internal HTMLSelectElement methods for returning a listbox option at a point |
- // ignore optgroup elements. |
- if (!m_renderer) |
- return 0; |
- |
- Node* node = m_renderer->node(); |
- if (!node) |
- return 0; |
- |
- LayoutRect parentRect = elementRect(); |
- |
- AXObject* listBoxOption = 0; |
- unsigned length = m_children.size(); |
- for (unsigned i = 0; i < length; i++) { |
- LayoutRect rect = toRenderListBox(m_renderer)->itemBoundingBoxRect(parentRect.location(), i); |
- // The cast to HTMLElement below is safe because the only other possible listItem type |
- // would be a WMLElement, but WML builds don't use accessibility features at all. |
- if (rect.contains(point)) { |
- listBoxOption = m_children[i].get(); |
- break; |
- } |
- } |
- |
- if (listBoxOption && !listBoxOption->accessibilityIsIgnored()) |
- return listBoxOption; |
- |
- return axObjectCache()->getOrCreate(m_renderer); |
-} |
- |
} // namespace WebCore |