From b74388fb8599a492c14cd3c8f3a7af3e7547a936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Thu, 18 Jun 2015 16:07:00 +0200 Subject: [PATCH] Bug 1176094 - [ATK] Assign role SECTION to math groups instead of PANEL/UNKNOWN. r=surkov --- accessible/atk/AccessibleWrap.cpp | 2 +- accessible/base/RoleMap.h | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/accessible/atk/AccessibleWrap.cpp b/accessible/atk/AccessibleWrap.cpp index 50d35d2699c..b6c43431bb1 100644 --- a/accessible/atk/AccessibleWrap.cpp +++ b/accessible/atk/AccessibleWrap.cpp @@ -683,7 +683,7 @@ getRoleCB(AtkObject *aAtkObj) else if (aAtkObj->role == ATK_ROLE_TABLE_ROW && !IsAtkVersionAtLeast(2, 1)) aAtkObj->role = ATK_ROLE_LIST_ITEM; else if (aAtkObj->role == ATK_ROLE_MATH && !IsAtkVersionAtLeast(2, 12)) - aAtkObj->role = ATK_ROLE_PANEL; + aAtkObj->role = ATK_ROLE_SECTION; else if (aAtkObj->role == ATK_ROLE_STATIC && !IsAtkVersionAtLeast(2, 16)) aAtkObj->role = ATK_ROLE_TEXT; else if ((aAtkObj->role == ATK_ROLE_MATH_FRACTION || diff --git a/accessible/base/RoleMap.h b/accessible/base/RoleMap.h index aedca120f2b..a3998a64e50 100644 --- a/accessible/base/RoleMap.h +++ b/accessible/base/RoleMap.h @@ -1122,7 +1122,7 @@ ROLE(MATHML_GLYPH, ROLE(MATHML_ROW, "mathml row", - ATK_ROLE_PANEL, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1154,7 +1154,7 @@ ROLE(MATHML_ROOT, ROLE(MATHML_FENCED, "mathml fenced", - ATK_ROLE_PANEL, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1162,7 +1162,7 @@ ROLE(MATHML_FENCED, ROLE(MATHML_ENCLOSED, "mathml enclosed", - ATK_ROLE_PANEL, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1170,7 +1170,7 @@ ROLE(MATHML_ENCLOSED, ROLE(MATHML_STYLE, "mathml style", - ATK_ROLE_PANEL, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1178,7 +1178,7 @@ ROLE(MATHML_STYLE, ROLE(MATHML_SUB, "mathml sub", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1186,7 +1186,7 @@ ROLE(MATHML_SUB, ROLE(MATHML_SUP, "mathml sup", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1194,7 +1194,7 @@ ROLE(MATHML_SUP, ROLE(MATHML_SUB_SUP, "mathml sub sup", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1202,7 +1202,7 @@ ROLE(MATHML_SUB_SUP, ROLE(MATHML_UNDER, "mathml under", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1210,7 +1210,7 @@ ROLE(MATHML_UNDER, ROLE(MATHML_OVER, "mathml over", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1218,7 +1218,7 @@ ROLE(MATHML_OVER, ROLE(MATHML_UNDER_OVER, "mathml under over", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1226,7 +1226,7 @@ ROLE(MATHML_UNDER_OVER, ROLE(MATHML_MULTISCRIPTS, "mathml multiscripts", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1266,7 +1266,7 @@ ROLE(MATHML_CELL, ROLE(MATHML_ACTION, "mathml action", - ATK_ROLE_UNKNOWN, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN, @@ -1274,7 +1274,7 @@ ROLE(MATHML_ACTION, ROLE(MATHML_ERROR, "mathml error", - ATK_ROLE_PANEL, + ATK_ROLE_SECTION, NSAccessibilityGroupRole, 0, IA2_ROLE_UNKNOWN,