Bug 382878. Remove unnecessary state copying hack for accessible link descendants. r=surkov

This commit is contained in:
aaronleventhal@moonset.net 2007-06-11 07:12:01 -07:00
Родитель 039f61021f
Коммит deca4a2479
1 изменённых файлов: 0 добавлений и 14 удалений

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

@ -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?