Changeset 241983 in webkit


Ignore:
Timestamp:
Feb 22, 2019 8:31:33 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

AX: Treat AXChildrenInNavigationOrder as AXChildren before adding support for aria-flowto
https://bugs.webkit.org/show_bug.cgi?id=194923

Patch by Eric Liang <ericliang@apple.com> on 2019-02-22
Reviewed by Chris Fleizach.

Source/WebCore:

Added AXChildrenInNavigationOrder attribute that returns the same array as from AXChildren. It prevents AppKit from reordering elements from the fallback AXChildren attribute.

Test: accessibility/mac/children-in-navigation-order-returns-children.html

  • accessibility/mac/WebAccessibilityObjectWrapperMac.mm:

(-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):

LayoutTests:

Added test to check AXChildrenInNavigationOrder returns non-empty array from AXChildren.

  • accessibility/mac/children-in-navigation-order-returns-children-expected.txt: Added.
  • accessibility/mac/children-in-navigation-order-returns-children.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r241979 r241983  
     12019-02-22  Eric Liang  <ericliang@apple.com>
     2
     3        AX: Treat AXChildrenInNavigationOrder as AXChildren before adding support for aria-flowto
     4        https://bugs.webkit.org/show_bug.cgi?id=194923
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Added test to check AXChildrenInNavigationOrder returns non-empty array from AXChildren.
     9        * accessibility/mac/children-in-navigation-order-returns-children-expected.txt: Added.
     10        * accessibility/mac/children-in-navigation-order-returns-children.html: Added.
     11
    1122019-02-22  Basuke Suzuki  <basuke.suzuki@sony.com>
    213
  • trunk/Source/WebCore/ChangeLog

    r241978 r241983  
     12019-02-22  Eric Liang  <ericliang@apple.com>
     2
     3        AX: Treat AXChildrenInNavigationOrder as AXChildren before adding support for aria-flowto
     4        https://bugs.webkit.org/show_bug.cgi?id=194923
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Added AXChildrenInNavigationOrder attribute that returns the same array as from AXChildren. It prevents AppKit from reordering elements from the fallback AXChildren attribute.
     9
     10        Test: accessibility/mac/children-in-navigation-order-returns-children.html
     11
     12        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
     13        (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]):
     14
    1152019-02-22  Tim Horton  <timothy_horton@apple.com>
    216
  • trunk/Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm

    r241321 r241983  
    152152#ifndef NSAccessibilityBlockQuoteLevelAttribute
    153153#define NSAccessibilityBlockQuoteLevelAttribute @"AXBlockQuoteLevel"
     154#endif
     155
     156#ifndef NSAccessibilityChildrenInNavigationOrderAttribute
     157#define NSAccessibilityChildrenInNavigationOrderAttribute @"AXChildrenInNavigationOrder"
    154158#endif
    155159
     
    24832487    }
    24842488   
    2485     if ([attributeName isEqualToString: NSAccessibilityChildrenAttribute]) {
     2489    if ([attributeName isEqualToString: NSAccessibilityChildrenAttribute] || [attributeName isEqualToString: NSAccessibilityChildrenInNavigationOrderAttribute]) {
    24862490        if (!self.childrenVectorSize) {
    24872491            NSArray* children = [self renderWidgetChildren];
Note: See TracChangeset for help on using the changeset viewer.