bug 477606 - select@size should be exposed as listbox, r=davidb, r=MarcoZ

This commit is contained in:
Alexander Surkov 2009-02-10 10:55:21 +01:00
parent 5286be7620
commit ce48d2a2db
3 changed files with 4 additions and 3 deletions

View File

@ -360,7 +360,7 @@ NS_IMETHODIMP nsHTMLSelectListAccessible::GetRole(PRUint32 *aRole)
if (nsAccUtils::Role(mParent) == nsIAccessibleRole::ROLE_COMBOBOX)
*aRole = nsIAccessibleRole::ROLE_COMBOBOX_LIST;
else
*aRole = nsIAccessibleRole::ROLE_LIST;
*aRole = nsIAccessibleRole::ROLE_LISTBOX;
return NS_OK;
}

View File

@ -60,6 +60,7 @@ const ROLE_GRID_CELL = nsIAccessibleRole.ROLE_GRID_CELL;
const ROLE_HEADING = nsIAccessibleRole.ROLE_HEADING;
const ROLE_LABEL = nsIAccessibleRole.ROLE_LABEL;
const ROLE_LIST = nsIAccessibleRole.ROLE_LIST;
const ROLE_LISTBOX = nsIAccessibleRole.ROLE_LISTBOX;
const ROLE_OPTION = nsIAccessibleRole.ROLE_OPTION;
const ROLE_PARAGRAPH = nsIAccessibleRole.ROLE_PARAGRAPH;
const ROLE_PASSWORD_TEXT = nsIAccessibleRole.ROLE_PASSWORD_TEXT;

View File

@ -87,7 +87,7 @@
"UI" // item 4
];
roles = [
ROLE_LIST, // root
ROLE_LISTBOX, // root
ROLE_OPTION, // item 1
ROLE_OPTION, // item 2
ROLE_OPTION, // item 4
@ -122,7 +122,7 @@
roles = [
ROLE_LABEL, // root
ROLE_TEXT_LEAF, // inner text
ROLE_LIST, // listbox accessible
ROLE_LISTBOX, // listbox accessible
ROLE_OPTION, // first option
ROLE_OPTION, // second option
ROLE_OPTION, // third option