Bug 392058. Fire accessible state change events when ARIA pressed state changes. r=simon.bates, a=dsicore

This commit is contained in:
aaronleventhal@moonset.net 2007-08-14 09:15:12 -07:00
parent 9d755fa725
commit 218a2fef08

View File

@ -1086,6 +1086,15 @@ nsDocAccessible::ARIAAttributeChanged(nsIContent* aContent, nsIAtom* aAttribute)
return;
}
if (aAttribute == nsAccessibilityAtoms::pressed) {
nsCOMPtr<nsIAccessibleStateChangeEvent> event =
new nsAccStateChangeEvent(targetNode,
nsIAccessibleStates::STATE_PRESSED,
PR_FALSE);
FireDelayedAccessibleEvent(event);
return;
}
if (aAttribute == nsAccessibilityAtoms::expanded) {
nsCOMPtr<nsIAccessibleStateChangeEvent> event =
new nsAccStateChangeEvent(targetNode,