Bug 370546. Documents should expose enabled+sensitive extended states. r=parente

This commit is contained in:
aaronleventhal%moonset.net 2007-02-16 14:37:20 +00:00
parent 93f06e008a
commit 9d450d3084
2 changed files with 0 additions and 13 deletions

View File

@ -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) {

View File

@ -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);