diff --git a/accessible/src/html/nsHTMLTextAccessible.cpp b/accessible/src/html/nsHTMLTextAccessible.cpp index 4136d97a46a..cb53c8b210d 100644 --- a/accessible/src/html/nsHTMLTextAccessible.cpp +++ b/accessible/src/html/nsHTMLTextAccessible.cpp @@ -234,7 +234,7 @@ NS_IMETHODIMP nsHTMLLabelAccessible::GetChildCount(PRInt32 *aAccChildCount) nsHTMLLIAccessible::nsHTMLLIAccessible(nsIDOMNode *aDOMNode, nsIWeakReference* aShell, nsIFrame *aBulletFrame, const nsAString& aBulletText): - nsHyperTextAccessibleWrap(aDOMNode, aShell) + nsLinkableAccessible(aDOMNode, aShell) { if (!aBulletText.IsEmpty()) { mBulletAccessible = new nsHTMLListBulletAccessible(mDOMNode, mWeakShell, @@ -252,7 +252,7 @@ NS_IMETHODIMP nsHTMLLIAccessible::Shutdown() // Ensure that weak pointer to this is nulled out mBulletAccessible->Shutdown(); } - nsresult rv = nsHyperTextAccessibleWrap::Shutdown(); + nsresult rv = nsLinkableAccessible::Shutdown(); mBulletAccessible = nsnull; return rv; } @@ -372,7 +372,6 @@ nsHTMLListAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState) nsresult rv = nsHyperTextAccessibleWrap::GetState(aState, aExtraState); NS_ENSURE_SUCCESS(rv, rv); - *aState &= ~nsIAccessibleStates::STATE_FOCUSABLE; *aState |= nsIAccessibleStates::STATE_READONLY; return NS_OK; } diff --git a/accessible/src/html/nsHTMLTextAccessible.h b/accessible/src/html/nsHTMLTextAccessible.h index 8c43d4ff8aa..735c202fede 100644 --- a/accessible/src/html/nsHTMLTextAccessible.h +++ b/accessible/src/html/nsHTMLTextAccessible.h @@ -42,6 +42,7 @@ #include "nsTextAccessibleWrap.h" #include "nsAutoPtr.h" +#include "nsBaseWidgetAccessible.h" class nsIWeakReference; @@ -132,7 +133,7 @@ public: NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState); }; -class nsHTMLLIAccessible : public nsHyperTextAccessibleWrap +class nsHTMLLIAccessible : public nsLinkableAccessible { public: nsHTMLLIAccessible(nsIDOMNode *aDOMNode, nsIWeakReference* aShell,