mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 299122. Support STATE_CHECKABLE on XUL menuitems and listitems. r=parente, sr=tor, a=asa
This commit is contained in:
parent
74efa171f5
commit
f2d726ae3f
@ -78,10 +78,10 @@ NS_IMETHODIMP nsXULMenuitemAccessible::GetState(PRUint32 *_retval)
|
||||
element->GetAttribute(NS_LITERAL_STRING("type"), menuItemType);
|
||||
|
||||
if (!menuItemType.IsEmpty()) {
|
||||
// Selectable?
|
||||
// Checkable?
|
||||
if (menuItemType.EqualsIgnoreCase("radio") ||
|
||||
menuItemType.EqualsIgnoreCase("checkbox"))
|
||||
*_retval |= STATE_SELECTABLE;
|
||||
*_retval |= STATE_CHECKABLE;
|
||||
|
||||
// Checked?
|
||||
nsAutoString checkValue;
|
||||
|
Loading…
Reference in New Issue
Block a user