зеркало из https://github.com/mozilla/gecko-dev.git
Bug 390629. ARIA trees not providing STATE_EXPANDABLE. r=surkov.alexander, a=dsicore
This commit is contained in:
Родитель
557d276629
Коммит
1960a851fb
|
@ -2289,6 +2289,10 @@ nsAccessible::GetFinalState(PRUint32 *aState, PRUint32 *aExtraState)
|
||||||
nsresult rv = GetState(aState, aExtraState);
|
nsresult rv = GetState(aState, aExtraState);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
|
// Apply ARIA states to be sure accessible states will be overriden.
|
||||||
|
rv = GetARIAState(aState);
|
||||||
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
// Set additional states which presence depends on another states.
|
// Set additional states which presence depends on another states.
|
||||||
if (aExtraState) {
|
if (aExtraState) {
|
||||||
if (!(*aState & nsIAccessibleStates::STATE_UNAVAILABLE)) {
|
if (!(*aState & nsIAccessibleStates::STATE_UNAVAILABLE)) {
|
||||||
|
@ -2311,8 +2315,7 @@ nsAccessible::GetFinalState(PRUint32 *aState, PRUint32 *aExtraState)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply ARIA states to be sure accessible states will be overriden.
|
return NS_OK;
|
||||||
return GetARIAState(aState);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
|
|
Загрузка…
Ссылка в новой задаче