get_accParent should try to retrieve parent AccessibilityObject, before
authorjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Jan 2010 01:42:36 +0000 (01:42 +0000)
committerjhoneycutt@apple.com <jhoneycutt@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 17 Jan 2010 01:42:36 +0000 (01:42 +0000)
commitc4b9b2b16cc68ba98af99f0dca14f9ee3059e841
treebe28bdeba3ff8461140f66825ab68f59b556844d
parent5f422486064944443b866bb443ab542d1b0e3110
get_accParent should try to retrieve parent AccessibilityObject, before
calling upon window

https://bugs.webkit.org/show_bug.cgi?id=22893

Reviewed by Darin Adler.

WebKit/win:

* AccessibleBase.cpp:
(AccessibleBase::get_accParent):
If the object has a parent object, return it. If not, return the
accessible for the WebView window.

WebKitTools:

* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::parentElement):
Get the object's parent. Query it for IAccessible, and return it.

LayoutTests:

* platform/win/accessibility/parent-element-expected.txt: Added.
* platform/win/accessibility/parent-element.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@53368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/win/accessibility/parent-element-expected.txt [new file with mode: 0644]
LayoutTests/platform/win/accessibility/parent-element.html [new file with mode: 0644]
WebKit/win/AccessibleBase.cpp
WebKit/win/ChangeLog
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/win/AccessibilityUIElementWin.cpp