Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(481)

Unified Diff: Source/core/accessibility/AXListBox.cpp

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698