Bug 148007 - Active Accessibility: wrong accState for XUL label and description elements. r=kyle, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@123282 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
df8aa3ff05
commit
9ece420781
@ -60,3 +60,11 @@ NS_IMETHODIMP nsXULTextAccessible::GetAccName(nsAString& _retval)
|
||||
}
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULTextAccessible::GetAccState(PRUint32 *_retval)
|
||||
{
|
||||
// Labels and description can only have read only state
|
||||
// They are not focusable or selectable
|
||||
*_retval = STATE_READONLY;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -50,6 +50,7 @@ class nsXULTextAccessible : public nsTextAccessible
|
||||
public:
|
||||
nsXULTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
|
||||
NS_IMETHOD GetAccName(nsAString& _retval);
|
||||
NS_IMETHOD GetAccState(PRUint32 *_retval);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user