Closed Bug 380669 Opened 18 years ago Closed 18 years ago

List items missing state enabled/sensitive

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: parente, Assigned: aaronlev)

References

Details

Attachments

(1 file)

<select> List items which can be focused, selected should have states enabled and sensitive like other interactive controls.
Attachment #264909 - Flags: review?(surkov.alexander)
Comment on attachment 264909 [details] [diff] [review] Up call for ENABLED/SENSITIVE/INVISIBLE/OPAQUE/DEFUNCT >@@ -630,10 +626,13 @@ nsHTMLSelectOptionAccessible::GetState(P > if (selectState & nsIAccessibleStates::STATE_COLLAPSED) { > // <select> is COLLAPSED: add STATE_OFFSCREEN > *aState |= nsIAccessibleStates::STATE_OFFSCREEN; > } > else { >+ // XXX list frames are weird, don't rely on nsAccessible's general >+ // visibility implementation unless they get reimplemented in layout >+ *aState &= ~nsIAccessibleStates::STATE_OFFSCREEN; > // <select> is not collapsed: compare bounds to calculate STATE_OFFSCREEN > nsCOMPtr<nsIAccessible> listAccessible = GetParent(); > if (listAccessible) { > PRInt32 optionX, optionY, optionWidth, optionHeight; > PRInt32 listX, listY, listWidth, listHeight; I would probably reogranize this code to set/remove state offscreen only if it is necessary.
Attachment #264909 - Flags: review?(surkov.alexander) → review+
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: