Closed
Bug 380669
Opened 18 years ago
Closed 18 years ago
List items missing state enabled/sensitive
Categories
(Core :: Disability Access APIs, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: parente, Assigned: aaronlev)
References
Details
Attachments
(1 file)
1.99 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
<select> List items which can be focused, selected should have states enabled and sensitive like other interactive controls.
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #264909 -
Flags: review?(surkov.alexander)
Comment 2•18 years ago
|
||
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+
Assignee | ||
Updated•18 years ago
|
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.
Description
•