From e97d2fbe9e1e3f6ae3a99b865437a5af4e7b7411 Mon Sep 17 00:00:00 2001 From: "ginn.chen%sun.com" Date: Sat, 29 Sep 2007 07:05:41 +0000 Subject: [PATCH] Bug 397728 revesed logic in nsAccessible::IsValid r=aaronleventhal a=dsicore --- accessible/src/base/nsAccessible.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessible/src/base/nsAccessible.cpp b/accessible/src/base/nsAccessible.cpp index a00e85467a0..cd0e38d5bfa 100644 --- a/accessible/src/base/nsAccessible.cpp +++ b/accessible/src/base/nsAccessible.cpp @@ -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"