AX: refactor AccessibilityRenderObject::doAccessibilityHitTest
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Dec 2010 02:00:46 +0000 (02:00 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Dec 2010 02:00:46 +0000 (02:00 +0000)
commit7e746cc3e558292bfb7a7fec1d1c343881d2d020
tree9e1f4932ecd27ee6c264b80f07f0abec6e236e45
parentaa787615abf2f17c767bcfd6032d39ff63b8eb38
AX: refactor AccessibilityRenderObject::doAccessibilityHitTest
https://bugs.webkit.org/show_bug.cgi?id=50574

Reviewed by Darin Adler.

WebCore:

Refactors accessibility hit testing to allow for a more flexible model when handling elements
with fake sub-elements (like sliders or list boxes).

Renamed doAccessibilityHitTest -> accessibilityHitTest, which is called on the root
accessibility render object. Then subclassers are able to override
elementAccessibilityHitTest to return their own specific elements.

* accessibility/AccessibilityListBox.cpp:
(WebCore::AccessibilityListBox::elementAccessibilityHitTest):
* accessibility/AccessibilityListBox.h:
* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::accessibilityHitTest):
(WebCore::AccessibilityObject::elementAccessibilityHitTest):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::accessibilityHitTest):
* accessibility/AccessibilityRenderObject.h:
* accessibility/AccessibilitySlider.cpp:
(WebCore::AccessibilitySlider::elementAccessibilityHitTest):
* accessibility/AccessibilitySlider.h:
* accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
(webkit_accessible_component_ref_accessible_at_point):
* accessibility/mac/AccessibilityObjectWrapper.mm:
(-[AccessibilityObjectWrapper accessibilityHitTest:]):

WebKit/chromium:

* src/WebAccessibilityObject.cpp:
(WebKit::WebAccessibilityObject::hitTest):

WebKit/win:

* AccessibleBase.cpp:
(AccessibleBase::accHitTest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
WebCore/ChangeLog
WebCore/accessibility/AccessibilityListBox.cpp
WebCore/accessibility/AccessibilityListBox.h
WebCore/accessibility/AccessibilityObject.h
WebCore/accessibility/AccessibilityRenderObject.cpp
WebCore/accessibility/AccessibilityRenderObject.h
WebCore/accessibility/AccessibilitySlider.cpp
WebCore/accessibility/AccessibilitySlider.h
WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp
WebCore/accessibility/mac/AccessibilityObjectWrapper.mm
WebKit/chromium/ChangeLog
WebKit/chromium/src/WebAccessibilityObject.cpp
WebKit/win/AccessibleBase.cpp
WebKit/win/ChangeLog