Changeset 247349 in webkit for trunk/Source/WebCore/ChangeLog


Ignore:
Timestamp:
Jul 11, 2019, 6:36:50 AM (6 years ago)
Author:
[email protected]
Message:

AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time
https://bugs.webkit.org/show_bug.cgi?id=199692

Reviewed by Chris Fleizach.

Source/WebCore:

Create new AccessibilityRole types which correspond to the new ARIA roles and
update AccessibilityRenderObject::determineAccessibilityRole() to assign these
internal roles to the related HTML elements.

Update both ATK and Mac to recognize these new internal roles. In addition, update
the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and
ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via
the AtkObject xml-roles attribute so that this information is not completely absent
for GTK or WPE built against earlier versions of ATK.

Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup().
These two methods were only being used by ATK and are no longer needed for platform
role mapping.

No new tests. Instead add the roles to the existing role-exposure tests.

  • accessibility/AccessibilityObject.cpp:

(WebCore::initializeRoleMap):
(WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted.
(WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted.

  • accessibility/AccessibilityObject.h:
  • accessibility/AccessibilityObjectInterface.h:
  • accessibility/AccessibilityRenderObject.cpp:

(WebCore::AccessibilityRenderObject::determineAccessibilityRole):

  • accessibility/atk/WebKitAccessible.cpp:

(webkitAccessibleGetAttributes):
(atkRole):

  • accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:

(-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]):

  • accessibility/mac/WebAccessibilityObjectWrapperMac.mm:

(createAccessibilityRoleMap):
(-[WebAccessibilityObjectWrapper subrole]):

Tools:

Add support for output of AXDeletion and AXInsertion roles for tests.
Update GTK and WPE jhbuild modules to use version of ATK and AT-SPI2
which include ROLE_CONTENT_DELETION and ROLE_CONTENT_INSERTION.

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
  • gtk/jhbuild.modules:
  • wpe/jhbuild.modules:

LayoutTests:

Add the new roles to the existing role-exposure tests and update expectations accordingly.

  • accessibility/gtk/object-attributes-expected.txt:
  • accessibility/gtk/object-attributes.html:
  • accessibility/gtk/xml-roles-exposed-expected.txt:
  • accessibility/gtk/xml-roles-exposed.html:
  • accessibility/roles-computedRoleString.html:
  • accessibility/roles-exposed.html:
  • platform/gtk/accessibility/roles-computedRoleString-expected.txt:
  • platform/gtk/accessibility/roles-exposed-expected.txt:
  • platform/mac-wk2/accessibility/roles-exposed-expected.txt:
  • platform/mac/accessibility/roles-computedRoleString-expected.txt:
  • platform/mac/accessibility/roles-exposed-expected.txt:
  • platform/wpe/accessibility/roles-computedRoleString-expected.txt:
  • platform/wpe/accessibility/roles-exposed-expected.txt:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r247347 r247349  
     12019-07-11  Joanmarie Diggs  <[email protected]>
     2
     3        AX: Implement support for ARIA roles insertion, deletion, subscript, superscript, and time
     4        https://bugs.webkit.org/show_bug.cgi?id=199692
     5
     6        Reviewed by Chris Fleizach.
     7
     8        Create new AccessibilityRole types which correspond to the new ARIA roles and
     9        update AccessibilityRenderObject::determineAccessibilityRole() to assign these
     10        internal roles to the related HTML elements.
     11
     12        Update both ATK and Mac to recognize these new internal roles. In addition, update
     13        the ATK mappings for the ins and del elements to ATK_ROLE_CONTENT_INSERTION and
     14        ATK_ROLE_CONTENT_DELETION respectively. Also expose "insertion" and "deletion" via
     15        the AtkObject xml-roles attribute so that this information is not completely absent
     16        for GTK or WPE built against earlier versions of ATK.
     17
     18        Remove AccessibilityObject's isSubscriptStyleGroup() and isSuperscriptStyleGroup().
     19        These two methods were only being used by ATK and are no longer needed for platform
     20        role mapping.
     21
     22        No new tests. Instead add the roles to the existing role-exposure tests.
     23
     24        * accessibility/AccessibilityObject.cpp:
     25        (WebCore::initializeRoleMap):
     26        (WebCore::AccessibilityObject::isSubscriptStyleGroup const): Deleted.
     27        (WebCore::AccessibilityObject::isSuperscriptStyleGroup const): Deleted.
     28        * accessibility/AccessibilityObject.h:
     29        * accessibility/AccessibilityObjectInterface.h:
     30        * accessibility/AccessibilityRenderObject.cpp:
     31        (WebCore::AccessibilityRenderObject::determineAccessibilityRole):
     32        * accessibility/atk/WebKitAccessible.cpp:
     33        (webkitAccessibleGetAttributes):
     34        (atkRole):
     35        * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:
     36        (-[WebAccessibilityObjectWrapper determineIsAccessibilityElement]):
     37        * accessibility/mac/WebAccessibilityObjectWrapperMac.mm:
     38        (createAccessibilityRoleMap):
     39        (-[WebAccessibilityObjectWrapper subrole]):
     40
    1412019-07-11  Thibault Saunier  <[email protected]>
    242
Note: See TracChangeset for help on using the changeset viewer.