зеркало из https://github.com/mozilla/pjs.git
Bug 411737. Remove old code to get doc state when getting focusable state for links. No longer useful. r=evan.yan, a=beltzner
This commit is contained in:
Родитель
1b99046294
Коммит
5510586a56
|
@ -143,21 +143,6 @@ nsLinkableAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
|
|||
}
|
||||
}
|
||||
|
||||
// XXX What if we're in a contenteditable container?
|
||||
// We may need to go up the parent chain unless a better API is found
|
||||
nsCOMPtr<nsIAccessible> docAccessible =
|
||||
do_QueryInterface(nsCOMPtr<nsIAccessibleDocument>(GetDocAccessible()));
|
||||
if (docAccessible) {
|
||||
PRUint32 docState = 0, docExtraState = 0;
|
||||
rv = docAccessible->GetFinalState(&docState, &docExtraState);
|
||||
if (NS_SUCCEEDED(rv) &&
|
||||
(docExtraState & nsIAccessibleStates::EXT_STATE_EDITABLE)) {
|
||||
// Links not focusable in editor
|
||||
*aState &= ~(nsIAccessibleStates::STATE_FOCUSED |
|
||||
nsIAccessibleStates::STATE_FOCUSABLE);
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче