Bug 397728 revesed logic in nsAccessible::IsValid

r=aaronleventhal a=dsicore
This commit is contained in:
ginn.chen%sun.com 2007-09-29 07:05:41 +00:00
Родитель 01814e4e85
Коммит e97d2fbe9e
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -3085,7 +3085,7 @@ NS_IMETHODIMP nsAccessible::GetObject(PRInt32 aIndex,
NS_IMETHODIMP nsAccessible::IsValid(PRBool *aIsValid)
{
PRUint32 state = State(this);
*aIsValid = (state & nsIAccessibleStates::STATE_INVALID) != 0;
*aIsValid = (0 == (state & nsIAccessibleStates::STATE_INVALID));
// XXX In order to implement this we would need to follow every link
// Perhaps we can get information about invalid links from the cache
// In the mean time authors can use role="wairole:link" aaa:invalid="true"