Closed
Bug 352357
Opened 18 years ago
Closed 18 years ago
Remove unused XP roles
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: hwaara, Assigned: hwaara)
Details
Attachments
(1 file, 3 obsolete files)
12.62 KB,
patch
|
aaronlev
:
review+
|
Details | Diff | Splinter Review |
Two unused roles can be removed: * ROLE_INTERNAL_FRAME * ROLE_EMBEDDED
Assignee | ||
Comment 1•18 years ago
|
||
I found two other XP roles that are dups: ROLE_WHITESPACE and ROLE_FILLER. Should I remove one of them?
Comment 2•18 years ago
|
||
Yes, remove ROLE_FILLER.
Assignee | ||
Comment 3•18 years ago
|
||
This removes it from all rolemaps (except mac's, which I will include with the other changes in bug 352327).
Attachment #238200 -
Flags: review?(aaronleventhal)
Updated•18 years ago
|
Attachment #238200 -
Flags: review?(aaronleventhal) → review+
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
after remove the roles, the role is not correcly mapped, and got this: ###!!! ASSERTION: ATK role map skewed: 'atkRoleMap[nsIAccessible::ROLE_LAST_ENTRY] == kROLE_ATK_LAST_ENTRY', file ../../../../mozilla/accessible/src/atk/nsAccessibleWrap.cpp, line 823
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #239295 -
Flags: review?(hwaara)
Assignee | ||
Comment 6•18 years ago
|
||
Comment on attachment 239295 [details] [diff] [review] add placeholder for the roleMap array Gah, I can't believe I didn't see this. Ok, so I suppose it's easier to use placeholders than to change all the nsIAccessible constants. Please fix mac too though. You can use NSAccessibilityUnknownRole for the placeholders.
Attachment #239295 -
Flags: review?(hwaara) → review-
Attachment #239295 -
Attachment is obsolete: true
Attachment #239333 -
Flags: review?(hwaara)
Assignee | ||
Updated•18 years ago
|
Attachment #239333 -
Flags: review?(hwaara) → review+
Comment on attachment 239333 [details] [diff] [review] also add fix for mac Aaron, to fix the bug, we can add placeholder as the patch does, or change the constants in nsIAccessible. which one do you prefer?
Attachment #239333 -
Flags: review?(aaronleventhal)
Comment 9•18 years ago
|
||
Comment on attachment 239333 [details] [diff] [review] also add fix for mac Sorry I missed this in the review. At least we have the assertion! I suggest removing the gaps out of the nsIAccessible constants instead, this is a bit strange.
Attachment #239333 -
Flags: review?(aaronleventhal) → review-
Assignee | ||
Updated•18 years ago
|
Summary: Remove 2 unused XP roles → Remove unused XP roles
Assignee | ||
Comment 10•18 years ago
|
||
This makes all nsIAccessible role constants be continous, since the value of a constant is used to access the Nth element in our rolemap arrays. There must be no gaps.
Attachment #238200 -
Attachment is obsolete: true
Attachment #239333 -
Attachment is obsolete: true
Attachment #239364 -
Flags: review?(aaronleventhal)
Updated•18 years ago
|
Attachment #239364 -
Flags: review?(aaronleventhal) → review+
Assignee | ||
Comment 11•18 years ago
|
||
Checked in. Can you guys verify that win32 and atk are OK now? When they are, let's close the bug.
Comment 12•18 years ago
|
||
verified on linux
Status: REOPENED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•