mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 13:56:29 +00:00
Bug 370546. Documents should expose enabled+sensitive extended states. r=parente
This commit is contained in:
parent
93f06e008a
commit
9d450d3084
@ -233,18 +233,6 @@ NS_IMETHODIMP nsDocAccessible::GetState(PRUint32 *aState)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocAccessible::GetExtState(PRUint32 *aExtState)
|
||||
{
|
||||
nsresult rv = nsHyperTextAccessible::GetExtState(aExtState);
|
||||
// Our default calculation for ENABLED/SENSITIVE checks to see if
|
||||
// something is focusable but not disabled.
|
||||
// Documents are focusable but are not controls that can be
|
||||
// enabled or sensitive, so here we clear those states,
|
||||
// since they will have been set by the default GetExtState()
|
||||
*aExtState &= ~(EXT_STATE_ENABLED | EXT_STATE_SENSITIVE);
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsDocAccessible::GetFocusedChild(nsIAccessible **aFocusedChild)
|
||||
{
|
||||
if (!gLastFocusedNode) {
|
||||
|
@ -78,7 +78,6 @@ class nsDocAccessible : public nsHyperTextAccessible,
|
||||
NS_IMETHOD GetName(nsAString& aName);
|
||||
NS_IMETHOD GetValue(nsAString& aValue);
|
||||
NS_IMETHOD GetState(PRUint32 *aState);
|
||||
NS_IMETHOD GetExtState(PRUint32 *aExtState);
|
||||
NS_IMETHOD GetFocusedChild(nsIAccessible **aFocusedChild);
|
||||
NS_IMETHOD GetParent(nsIAccessible **aParent);
|
||||
NS_IMETHOD TakeFocus(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user