AX: Figure out why list-detection2.html test fails on GTK
authorjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2015 08:03:34 +0000 (08:03 +0000)
committerjdiggs@igalia.com <jdiggs@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 22 May 2015 08:03:34 +0000 (08:03 +0000)
commitba5fc7835fd6fae4e74d7be3f9693421ff4eff4e
tree478db4aa3f7b4ab12879a884bb3220fbae50900b
parent0eaf038beaaaaee1b32ae14afe67fc7e5ada85b8
AX: Figure out why list-detection2.html test fails on GTK
https://bugs.webkit.org/show_bug.cgi?id=145273

Reviewed by Chris Fleizach.

Source/WebCore:

Platforms which expose rendered text content through the parent element "ignore" the
child renderers. This was causing AccessibilityList::childHasPseudoVisibleListItemMarker
to fail, which in turn caused the list detection heuristic to fail. Therefore add one
final check to this method to look for non-empty, non-whitespace text under the ::before
pseudo element.

No new tests; list-detection2.html now passes on GTK.

* accessibility/AccessibilityList.cpp:
(WebCore::AccessibilityList::childHasPseudoVisibleListItemMarkers):

LayoutTests:

* platform/gtk/TestExpectations: Removed list-detection2.html from the list of expected failures.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/gtk/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/accessibility/AccessibilityList.cpp