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:
ginn.chen%sun.com 2006-12-29 08:52:04 +00:00
Родитель 42c66b4083
Коммит 0d462caeb2
1 изменённых файлов: 5 добавлений и 3 удалений

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

@ -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;
}