diff --git a/accessible/src/base/nsBaseWidgetAccessible.cpp b/accessible/src/base/nsBaseWidgetAccessible.cpp index 7ec66bd667d..4c6adef84df 100644 --- a/accessible/src/base/nsBaseWidgetAccessible.cpp +++ b/accessible/src/base/nsBaseWidgetAccessible.cpp @@ -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 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?