AX: Select activity behavior does not work when an existing range is already selected
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Aug 2014 05:09:05 +0000 (05:09 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 Aug 2014 05:09:05 +0000 (05:09 +0000)
commit6339c1af89e2a61119ebd853991a838c9e9f8cad
tree0d8676b06ab7cbf67a2d429df9c0e558cb541413
parentaf79327789c45c6ecbb9b1f8d44b4fa1bf1d1d5a
AX: Select activity behavior does not work when an existing range is already selected
https://bugs.webkit.org/show_bug.cgi?id=135579

Reviewed by Mario Sanchez Prada.

Source/WebCore:
If you have an existing range selected, and try to apply a select and replace operation, like capitalize,
searching for that range will fail because it skips the currently selected range.

For these cases, it seems the best way is to start the search from the start position, rather than relying on the
entire range.

Updated existing test: platform/mac/accessibility/select-text.html

* accessibility/AccessibilityObject.cpp:
(WebCore::AccessibilityObject::selectText):

LayoutTests:
* platform/mac/accessibility/select-text-expected.txt:
* platform/mac/accessibility/select-text.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/accessibility/select-text-expected.txt
LayoutTests/platform/mac/accessibility/select-text.html
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityObject.cpp