AX: contenteditable nodes do not return correct AXSelectedText* attributes
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Oct 2010 19:22:43 +0000 (19:22 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 21 Oct 2010 19:22:43 +0000 (19:22 +0000)
commit494ac0f171a93b838b0ce707aa0c7c4d05b20931
treeac8c570f92a839e3be6854a4c5c24c0da1e39e41
parent9af70523a419ea7b129995a9b5bf752057cb12c2
AX: contenteditable nodes do not return correct AXSelectedText* attributes
https://bugs.webkit.org/show_bug.cgi?id=48080

Reviewed by Beth Dakin.

WebCore:

The ariaSelectedDOMTextRange() method was not returning the correct values.
The fix is to return a plain text range that represents the current selection.

Test: platform/mac/accessibility/content-editable-range-properties.html

* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::accessibilityDescription):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::ariaSelectedTextRange):
(WebCore::AccessibilityRenderObject::selectedText):
(WebCore::AccessibilityRenderObject::selectedTextRange):
* accessibility/AccessibilityRenderObject.h:

LayoutTests:

* platform/mac/accessibility/content-editable-range-properties-expected.txt: Added.
* platform/mac/accessibility/content-editable-range-properties.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70256 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/accessibility/content-editable-range-properties-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/accessibility/content-editable-range-properties.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/accessibility/AccessibilityObject.h
WebCore/accessibility/AccessibilityRenderObject.cpp
WebCore/accessibility/AccessibilityRenderObject.h