AX: improve list heuristics (presentational use versus actual lists)
authorcfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 May 2015 23:42:08 +0000 (23:42 +0000)
committercfleizach@apple.com <cfleizach@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 May 2015 23:42:08 +0000 (23:42 +0000)
commit7bf6a21db4b706c66aca0311c6a30b9b306062dc
tree5e57740386f5d4a917839580d61c0800fcf01e05
parentb741fe3cf4a2d91a9db0e999d0b8f653e91703a5
AX: improve list heuristics (presentational use versus actual lists)
https://bugs.webkit.org/show_bug.cgi?id=134187

Reviewed by Darin Adler.

Source/WebCore:

Improve heuristics for list detection by:
    1. Not exposing lists without list markers (unless explicitly marked as lists)
    2. Recognizing css: before-content as list markers

Test: accessibility/list-detection2.html

* accessibility/AccessibilityList.cpp:
(WebCore::AccessibilityList::isDescriptionList):
(WebCore::AccessibilityList::childHasPseudoVisibleListItemMarkers):
(WebCore::AccessibilityList::determineAccessibilityRole):
* accessibility/AccessibilityList.h:

LayoutTests:

* accessibility/list-detection-expected.txt:
* accessibility/list-detection.html:
* accessibility/list-detection2-expected.txt: Added.
* accessibility/list-detection2.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/accessibility/list-detection-expected.txt
LayoutTests/accessibility/list-detection.html
LayoutTests/accessibility/list-detection2-expected.txt [new file with mode: 0644]
LayoutTests/accessibility/list-detection2.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityList.cpp
Source/WebCore/accessibility/AccessibilityList.h