Skip to content

Commit

Permalink
Merge r223145 - AX: [ATK] ARIA form role should be mapped to ATK_ROLE…
Browse files Browse the repository at this point in the history
…_LANDMARK; not ATK_ROLE_FORM

https://bugs.webkit.org/show_bug.cgi?id=178137

Reviewed by Chris Fleizach.

Source/WebCore:

Expose the ARIA form role as ATK_ROLE_LANDMARK; continue to expose the HTML form
element as ATK_ROLE_FORM.

No new tests needed due to existing coverage. Update expectations for roles-exposed.html.

* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(atkRole):

Tools:

Add handling for ATK_ROLE_LANDMARK resulting from the ARIA form role.

* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:

LayoutTests:

* platform/gtk/accessibility/roles-exposed-expected.txt: Updated expectations.
  • Loading branch information
joanmarie authored and carlosgcampos committed Oct 17, 2017
1 parent b5b53bf commit 7d79949
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1 deletion.
9 changes: 9 additions & 0 deletions LayoutTests/ChangeLog
@@ -1,3 +1,12 @@
2017-10-10 Joanmarie Diggs <jdiggs@igalia.com>

AX: [ATK] ARIA form role should be mapped to ATK_ROLE_LANDMARK; not ATK_ROLE_FORM
https://bugs.webkit.org/show_bug.cgi?id=178137

Reviewed by Chris Fleizach.

* platform/gtk/accessibility/roles-exposed-expected.txt: Updated expectations.

2017-10-10 Joanmarie Diggs <jdiggs@igalia.com>

AX: [ATK] STATE_CHECKABLE should be removed from radio buttons in radiogroups with aria-readonly="true"
Expand Down
Expand Up @@ -647,7 +647,7 @@ div[role=figure]
AXRole: AXGroup

div[role=form]
AXRole: AXForm
AXRole: AXLandmarkForm

div[role=grid]
AXRole: AXTable
Expand Down
15 changes: 15 additions & 0 deletions Source/WebCore/ChangeLog
@@ -1,3 +1,18 @@
2017-10-10 Joanmarie Diggs <jdiggs@igalia.com>

AX: [ATK] ARIA form role should be mapped to ATK_ROLE_LANDMARK; not ATK_ROLE_FORM
https://bugs.webkit.org/show_bug.cgi?id=178137

Reviewed by Chris Fleizach.

Expose the ARIA form role as ATK_ROLE_LANDMARK; continue to expose the HTML form
element as ATK_ROLE_FORM.

No new tests needed due to existing coverage. Update expectations for roles-exposed.html.

* accessibility/atk/WebKitAccessibleWrapperAtk.cpp:
(atkRole):

2017-10-10 Joanmarie Diggs <jdiggs@igalia.com>

AX: [ATK] STATE_CHECKABLE should be removed from radio buttons in radiogroups with aria-readonly="true"
Expand Down
Expand Up @@ -773,6 +773,10 @@ static AtkRole atkRole(AccessibilityObject* coreObject)
case FooterRole:
return ATK_ROLE_FOOTER;
case FormRole:
#if ATK_CHECK_VERSION(2, 11, 3)
if (coreObject->ariaRoleAttribute() != UnknownRole)
return ATK_ROLE_LANDMARK;
#endif
return ATK_ROLE_FORM;
case CanvasRole:
return ATK_ROLE_CANVAS;
Expand Down
11 changes: 11 additions & 0 deletions Tools/ChangeLog
@@ -1,3 +1,14 @@
2017-10-10 Joanmarie Diggs <jdiggs@igalia.com>

AX: [ATK] ARIA form role should be mapped to ATK_ROLE_LANDMARK; not ATK_ROLE_FORM
https://bugs.webkit.org/show_bug.cgi?id=178137

Reviewed by Chris Fleizach.

Add handling for ATK_ROLE_LANDMARK resulting from the ARIA form role.

* WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:

2017-10-03 Joanmarie Diggs <jdiggs@igalia.com>

AX: [ATK] ARIA drag-and-drop attribute values should be exposed via AtkObject attributes
Expand Down
Expand Up @@ -125,6 +125,7 @@ const String attributesMap[][2] = {
const char* landmarkStringBanner = "AXLandmarkBanner";
const char* landmarkStringComplementary = "AXLandmarkComplementary";
const char* landmarkStringContentinfo = "AXLandmarkContentInfo";
const char* landmarkStringForm = "AXLandmarkForm";
const char* landmarkStringMain = "AXLandmarkMain";
const char* landmarkStringNavigation = "AXLandmarkNavigation";
const char* landmarkStringRegion = "AXLandmarkRegion";
Expand Down Expand Up @@ -394,6 +395,8 @@ const gchar* roleToString(AtkObject* object)
return landmarkStringRegion;
if (equalLettersIgnoringASCIICase(xmlRolesValue, "doc-toc"))
return landmarkStringRegion;
if (equalLettersIgnoringASCIICase(xmlRolesValue, "form"))
return landmarkStringForm;
if (equalLettersIgnoringASCIICase(xmlRolesValue, "main"))
return landmarkStringMain;
if (equalLettersIgnoringASCIICase(xmlRolesValue, "navigation"))
Expand Down

0 comments on commit 7d79949

Please sign in to comment.