Title: [287423] trunk/Source/WebCore
Revision
287423
Author
carlo...@webkit.org
Date
2021-12-24 02:47:51 -0800 (Fri, 24 Dec 2021)

Log Message

[GTK][a11y] Expose list items with pseudo marker as List instead of Group with ATSPI
https://bugs.webkit.org/show_bug.cgi?id=234633

Reviewed by Adrian Perez de Castro.

This happens because pseudo markers don't have the ListMarker role, but StaticText that we ignore.

Fixes accessibility/list-detection2.html.

* accessibility/AccessibilityList.cpp:
(WebCore::AccessibilityList::childHasPseudoVisibleListItemMarkers): Add ATSPI ifdef too.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (287422 => 287423)


--- trunk/Source/WebCore/ChangeLog	2021-12-24 07:47:13 UTC (rev 287422)
+++ trunk/Source/WebCore/ChangeLog	2021-12-24 10:47:51 UTC (rev 287423)
@@ -1,3 +1,17 @@
+2021-12-24  Carlos Garcia Campos  <cgar...@igalia.com>
+
+        [GTK][a11y] Expose list items with pseudo marker as List instead of Group with ATSPI
+        https://bugs.webkit.org/show_bug.cgi?id=234633
+
+        Reviewed by Adrian Perez de Castro.
+
+        This happens because pseudo markers don't have the ListMarker role, but StaticText that we ignore.
+
+        Fixes accessibility/list-detection2.html.
+
+        * accessibility/AccessibilityList.cpp:
+        (WebCore::AccessibilityList::childHasPseudoVisibleListItemMarkers): Add ATSPI ifdef too.
+
 2021-12-23  Alan Bujtas  <za...@apple.com>
 
         REGRESSION(Containment) nullptr deref in RenderBox::styleDidChange

Modified: trunk/Source/WebCore/accessibility/AccessibilityList.cpp (287422 => 287423)


--- trunk/Source/WebCore/accessibility/AccessibilityList.cpp	2021-12-24 07:47:13 UTC (rev 287422)
+++ trunk/Source/WebCore/accessibility/AccessibilityList.cpp	2021-12-24 10:47:51 UTC (rev 287423)
@@ -117,7 +117,7 @@
     
     // Platforms which expose rendered text content through the parent element will treat
     // those renderers as "ignored" objects.
-#if USE(ATK)
+#if USE(ATK) || USE(ATSPI)
     String text = axObj->textUnderElement();
     return !text.isEmpty() && !text.isAllSpecialCharacters<isHTMLSpace>();
 #else
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to