Closed Bug 751493 Opened 12 years ago Closed 12 years ago

move out the nsHTMLComboboxListAccessible logic from nsHTMLSelectListAccessible::NativeRole

Categories

(Core :: Disability Access APIs, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: surkov, Assigned: jhk)

References

(Blocks 1 open bug)

Details

(Whiteboard: [good first bug][mentor=hub@mozilla.com][lang=c++])

Attachments

(1 file, 2 obsolete files)

just add nsHTMLComboboxListAccessible::NativeRole() and remove the related things from nsHTMLSelectListAccessible::NativeRole (http://mxr.mozilla.org/mozilla-central/source/accessible/src/html/nsHTMLSelectAccessible.cpp#89)
Attached patch Patch(v1) (obsolete) — Splinter Review
Attachment #621899 - Flags: feedback?(surkov.alexander)
Comment on attachment 621899 [details] [diff] [review]
Patch(v1)

Review of attachment 621899 [details] [diff] [review]:
-----------------------------------------------------------------

::: accessible/src/html/nsHTMLSelectAccessible.cpp
@@ -91,5 @@
> -  if (mParent && mParent->Role() == roles::COMBOBOX)
> -    return roles::COMBOBOX_LIST;
> -
> -  return roles::LISTBOX;
> -}

you should keep this method but it should return roles::LISTBOX

@@ +738,5 @@
> +{
> +  if (mParent && mParent->Role() == roles::COMBOBOX)
> +    return roles::COMBOBOX_LIST;
> +
> +  return roles::LISTBOX;

this one should return roles::COMBOBOX
Attachment #621899 - Flags: feedback?(surkov.alexander) → feedback-
Attached patch Patch(v2) (obsolete) — Splinter Review
Assignee: nobody → jigneshhk1992
Attachment #621899 - Attachment is obsolete: true
Attachment #623598 - Flags: review?(surkov.alexander)
Comment on attachment 623598 [details] [diff] [review]
Patch(v2)

nsHTMLSelectListAccessible can't have COMBOBOX_LIST role, so remove this part
Attachment #623598 - Flags: review?(surkov.alexander) → review-
Attached patch Patch(v3)Splinter Review
Attachment #623598 - Attachment is obsolete: true
Attachment #623600 - Flags: review?(surkov.alexander)
Attachment #623600 - Flags: review?(surkov.alexander) → review+
https://hg.mozilla.org/mozilla-central/rev/ec2594f42e9e
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: