Bug 1732108: Map ATK_ROLE_CONTENT_DELETION/INSERTION. r=eeejay

Differential Revision: https://phabricator.services.mozilla.com/D126432
This commit is contained in:
James Teh 2021-09-24 00:05:50 +00:00
Родитель 4547265146
Коммит f08c138efd
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -622,6 +622,10 @@ AtkRole getRoleCB(AtkObject* aAtkObj) {
aAtkObj->role = ATK_ROLE_SECTION;
} else if (aAtkObj->role == ATK_ROLE_COMMENT && !IsAtkVersionAtLeast(2, 36)) {
aAtkObj->role = ATK_ROLE_SECTION;
} else if ((aAtkObj->role == ATK_ROLE_CONTENT_DELETION ||
aAtkObj->role == ATK_ROLE_CONTENT_INSERTION) &&
!IsAtkVersionAtLeast(2, 34)) {
aAtkObj->role = ATK_ROLE_SECTION;
}
return aAtkObj->role;

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

@ -1789,7 +1789,7 @@ ROLE(BLOCKQUOTE,
ROLE(CONTENT_DELETION,
"content deletion",
ATK_ROLE_SECTION,
ATK_ROLE_CONTENT_DELETION,
NSAccessibilityGroupRole,
@"AXDeleteStyleGroup",
USE_ROLE_STRING,
@ -1799,7 +1799,7 @@ ROLE(CONTENT_DELETION,
ROLE(CONTENT_INSERTION,
"content insertion",
ATK_ROLE_SECTION,
ATK_ROLE_CONTENT_INSERTION,
NSAccessibilityGroupRole,
@"AXInsertStyleGroup",
USE_ROLE_STRING,