зеркало из 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,
|
nsHTMLLIAccessible::nsHTMLLIAccessible(nsIDOMNode *aDOMNode, nsIWeakReference* aShell,
|
||||||
nsIFrame *aBulletFrame, const nsAString& aBulletText):
|
nsIFrame *aBulletFrame, const nsAString& aBulletText):
|
||||||
nsHyperTextAccessibleWrap(aDOMNode, aShell)
|
nsLinkableAccessible(aDOMNode, aShell)
|
||||||
{
|
{
|
||||||
if (!aBulletText.IsEmpty()) {
|
if (!aBulletText.IsEmpty()) {
|
||||||
mBulletAccessible = new nsHTMLListBulletAccessible(mDOMNode, mWeakShell,
|
mBulletAccessible = new nsHTMLListBulletAccessible(mDOMNode, mWeakShell,
|
||||||
|
@ -252,7 +252,7 @@ NS_IMETHODIMP nsHTMLLIAccessible::Shutdown()
|
||||||
// Ensure that weak pointer to this is nulled out
|
// Ensure that weak pointer to this is nulled out
|
||||||
mBulletAccessible->Shutdown();
|
mBulletAccessible->Shutdown();
|
||||||
}
|
}
|
||||||
nsresult rv = nsHyperTextAccessibleWrap::Shutdown();
|
nsresult rv = nsLinkableAccessible::Shutdown();
|
||||||
mBulletAccessible = nsnull;
|
mBulletAccessible = nsnull;
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
@ -372,7 +372,6 @@ nsHTMLListAccessible::GetState(PRUint32 *aState, PRUint32 *aExtraState)
|
||||||
nsresult rv = nsHyperTextAccessibleWrap::GetState(aState, aExtraState);
|
nsresult rv = nsHyperTextAccessibleWrap::GetState(aState, aExtraState);
|
||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
*aState &= ~nsIAccessibleStates::STATE_FOCUSABLE;
|
|
||||||
*aState |= nsIAccessibleStates::STATE_READONLY;
|
*aState |= nsIAccessibleStates::STATE_READONLY;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
|
|
||||||
#include "nsTextAccessibleWrap.h"
|
#include "nsTextAccessibleWrap.h"
|
||||||
#include "nsAutoPtr.h"
|
#include "nsAutoPtr.h"
|
||||||
|
#include "nsBaseWidgetAccessible.h"
|
||||||
|
|
||||||
class nsIWeakReference;
|
class nsIWeakReference;
|
||||||
|
|
||||||
|
@ -132,7 +133,7 @@ public:
|
||||||
NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState);
|
NS_IMETHOD GetState(PRUint32 *aState, PRUint32 *aExtraState);
|
||||||
};
|
};
|
||||||
|
|
||||||
class nsHTMLLIAccessible : public nsHyperTextAccessibleWrap
|
class nsHTMLLIAccessible : public nsLinkableAccessible
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nsHTMLLIAccessible(nsIDOMNode *aDOMNode, nsIWeakReference* aShell,
|
nsHTMLLIAccessible(nsIDOMNode *aDOMNode, nsIWeakReference* aShell,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче