Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Unified Diff: webkit/glue/webaccessibility.cc

Issue 8588036: Improve support for multiselect list box accessibility on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/glue/webaccessibility.cc
===================================================================
--- webkit/glue/webaccessibility.cc (revision 111700)
+++ webkit/glue/webaccessibility.cc (working copy)
@@ -801,6 +801,10 @@
if (role == ROLE_SLIDER)
include_children = false;
+ // Treat the active list box item as focused.
+ if (role == ROLE_LISTBOX_OPTION && src.isSelectedOptionActive())
+ state |= (1 << WebAccessibility::STATE_FOCUSED);
+
WebKit::WebNode node = src.node();
bool is_iframe = false;

Powered by Google App Engine
This is Rietveld 408576698