зеркало из https://github.com/mozilla/pjs.git
Bug 382878. Remove unnecessary state copying hack for accessible link descendants. r=surkov
This commit is contained in:
Родитель
039f61021f
Коммит
deca4a2479
|
@ -132,20 +132,6 @@ nsLinkableAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
|
|||
*aState |= nsIAccessibleStates::STATE_TRAVERSED;
|
||||
}
|
||||
}
|
||||
// Make sure we also include all the states of the parent link, such as focusable, focused, etc.
|
||||
PRUint32 role;
|
||||
GetRole(&role);
|
||||
if (role != nsIAccessibleRole::ROLE_LINK) {
|
||||
nsCOMPtr<nsIAccessible> parentAccessible(GetParent());
|
||||
if (parentAccessible) {
|
||||
PRUint32 orState = State(parentAccessible);
|
||||
*aState |= orState;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mActionContent && !mActionContent->IsFocusable()) {
|
||||
// Links must have href or tabindex
|
||||
*aState &= ~nsIAccessibleStates::STATE_FOCUSABLE;
|
||||
}
|
||||
|
||||
// XXX What if we're in a contenteditable container?
|
||||
|
|
Загрузка…
Ссылка в новой задаче