зеркало из https://github.com/mozilla/pjs.git
bug 364274 Incorrect state for static text in wizard dialogs
patch by evan.yan at sun.com r=ginn.chen
This commit is contained in:
Родитель
42c66b4083
Коммит
0d462caeb2
|
@ -69,11 +69,13 @@ NS_IMETHODIMP nsXULTextAccessible::GetName(nsAString& aName)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsXULTextAccessible::GetState(PRUint32 *_retval)
|
||||
NS_IMETHODIMP nsXULTextAccessible::GetState(PRUint32 *aState)
|
||||
{
|
||||
// Labels and description can only have read only state
|
||||
nsHyperTextAccessible::GetState(aState);
|
||||
|
||||
// Labels and description have read only state
|
||||
// They are not focusable or selectable
|
||||
*_retval = STATE_READONLY;
|
||||
*aState |= STATE_READONLY;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче