зеркало из https://github.com/mozilla/pjs.git
Bug 379875. Support checkable in ATK via object attribute since there is no other way in ATK. r=david.bolter
This commit is contained in:
Родитель
97f5ee2654
Коммит
78244d63d3
|
@ -804,6 +804,12 @@ GetAttributeSet(nsIAccessible* aAccessible)
|
|||
attributes->SetStringProperty(NS_LITERAL_CSTRING("haspopup"), NS_LITERAL_STRING("true"),
|
||||
oldValueUnused);
|
||||
}
|
||||
if (state & nsIAccessibleStates::STATE_CHECKABLE) {
|
||||
// There is no ATK state for haspopup, must use object attribute to expose the same info
|
||||
nsAutoString oldValueUnused;
|
||||
attributes->SetStringProperty(NS_LITERAL_CSTRING("checkable"), NS_LITERAL_STRING("true"),
|
||||
oldValueUnused);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsISimpleEnumerator> propEnum;
|
||||
nsresult rv = attributes->Enumerate(getter_AddRefs(propEnum));
|
||||
|
|
Загрузка…
Ссылка в новой задаче