AX: Typing broken on form input field while using VoiceOver
authorn_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 17:44:00 +0000 (17:44 +0000)
committern_wang@apple.com <n_wang@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 Mar 2016 17:44:00 +0000 (17:44 +0000)
commit225d21f01a5b117d67b8648a62da31987bf0d8be
tree478e72e59e48349aedaf473a76e51f049ba1758b
parent22e2ca653f6724d26ee47103a5ee908aa37fb3e0
AX: Typing broken on form input field while using VoiceOver
https://bugs.webkit.org/show_bug.cgi?id=155613

Reviewed by Chris Fleizach.

Source/WebCore:

The div element inside the INPUT element gives a collapsed TextMarkerRange which then creates
a collapsed Range. Fixed it by using the parent node to create the Range when the div node has
no children.

Test: accessibility/mac/text-marker-range-for-node-without-children.html

* accessibility/AXObjectCache.cpp:
(WebCore::setRangeStartOrEndWithCharacterOffset):

LayoutTests:

* accessibility/mac/text-marker-range-for-node-without-children-expected.txt: Added.
* accessibility/mac/text-marker-range-for-node-without-children.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/mac/text-marker-range-for-node-without-children-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/mac/text-marker-range-for-node-without-children.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AXObjectCache.cpp