Bug 1540813 - Support new ARIA roles insertion and deletion, r=Jamie

Differential Revision: https://phabricator.services.mozilla.com/D42911

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Maliha Islam 2019-08-21 20:36:39 +00:00
Родитель 4e9c8ebeb6
Коммит f6e1118c76
3 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -184,6 +184,15 @@ static const nsRoleMapEntry sWAIRoleMaps[] = {
eLandmark,
kNoReqStates
},
{ // deletion
nsGkAtoms::deletion,
roles::CONTENT_DELETION,
kUseMapRole,
eNoValue,
eNoAction,
eNoLiveAttr,
kGenericAccType,
},
{ // dialog
nsGkAtoms::dialog,
roles::DIALOG,
@ -721,6 +730,15 @@ static const nsRoleMapEntry sWAIRoleMaps[] = {
kGenericAccType,
kNoReqStates
},
{ // insertion
nsGkAtoms::insertion,
roles::CONTENT_INSERTION,
kUseMapRole,
eNoValue,
eNoAction,
eNoLiveAttr,
kGenericAccType,
},
{ // key
nsGkAtoms::key,
roles::KEY,

Просмотреть файл

@ -26,6 +26,7 @@
testRole("aria_checkbox", ROLE_CHECKBUTTON);
testRole("aria_columnheader", ROLE_COLUMNHEADER);
testRole("aria_combobox", ROLE_EDITCOMBOBOX);
testRole("aria_deletion", ROLE_CONTENT_DELETION);
testRole("aria_dialog", ROLE_DIALOG);
testRole("aria_directory", ROLE_LIST);
testRole("aria_document", ROLE_NON_NATIVE_DOCUMENT);
@ -38,6 +39,7 @@
testRole("aria_group", ROLE_GROUPING);
testRole("aria_heading", ROLE_HEADING);
testRole("aria_img", ROLE_GRAPHIC);
testRole("aria_insertion", ROLE_CONTENT_INSERTION);
testRole("aria_link", ROLE_LINK);
testRole("aria_list", ROLE_LIST);
testRole("aria_listbox", ROLE_LISTBOX);
@ -219,6 +221,7 @@
<span id="aria_checkbox" role="checkbox"/>
<span id="aria_columnheader" role="columnheader"/>
<span id="aria_combobox" role="combobox"/>
<span id="aria_deletion" role="deletion" />
<span id="aria_dialog" role="dialog"/>
<span id="aria_directory" role="directory"/>
<span id="aria_document" role="document"/>
@ -231,6 +234,7 @@
<span id="aria_group" role="group"/>
<span id="aria_heading" role="heading"/>
<span id="aria_img" role="img"/>
<span id="aria_insertion" role="insertion" />
<span id="aria_link" role="link"/>
<span id="aria_list" role="list"/>
<span id="aria_listbox" role="listbox"/>

Просмотреть файл

@ -306,6 +306,7 @@ STATIC_ATOMS = [
Atom("headerDefaultStyle", "default-style"),
Atom("defer", "defer"),
Atom("del", "del"),
Atom("deletion", "deletion"),
Atom("deprecation", "deprecation"),
Atom("descendant", "descendant"),
Atom("descendantOrSelf", "descendant-or-self"),
@ -533,6 +534,7 @@ STATIC_ATOMS = [
Atom("ins", "ins"),
Atom("insertafter", "insertafter"),
Atom("insertbefore", "insertbefore"),
Atom("insertion", "insertion"),
Atom("integer", "integer"),
Atom("integrity", "integrity"),
Atom("intersection", "intersection"),