Bug 373050. Make accessibility states SENSITIVE and ENABLED the exact opposite of DISABLED. r=parente

This commit is contained in:
aaronleventhal%moonset.net 2007-03-07 21:20:51 +00:00
Родитель 4427992489
Коммит ad746fc11d
1 изменённых файлов: 1 добавлений и 6 удалений

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

@ -2518,12 +2518,7 @@ NS_IMETHODIMP nsAccessible::GetExtState(PRUint32 *aExtState)
PRUint32 state ;
GetFinalState(&state);
if (0 == (state & STATE_UNAVAILABLE)) { // If not disabled
// And if has at least 1 action or it is focusable, it can be ENABLED and SENSITIVE
PRUint8 actions;
GetNumActions(&actions);
if (actions > 0 || (state & STATE_FOCUSABLE)) {
*aExtState |= EXT_STATE_ENABLED | EXT_STATE_SENSITIVE;
}
*aExtState |= EXT_STATE_ENABLED | EXT_STATE_SENSITIVE;
}
if (state & (STATE_COLLAPSED | STATE_EXPANDED)) {