Bug 390629. ARIA trees not providing STATE_EXPANDABLE. r=surkov.alexander, a=dsicore

This commit is contained in:
aaronleventhal@moonset.net 2007-08-08 06:46:38 -07:00
Родитель 557d276629
Коммит 1960a851fb
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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