зеркало из https://github.com/mozilla/pjs.git
Bug 301621. Follow up patch to fix onclick a11y on <li>. r=ginn.chen
This commit is contained in:
Родитель
942cb9f47b
Коммит
a6b76d3de5
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче