Index: webkit/glue/webaccessibility.cc |
=================================================================== |
--- webkit/glue/webaccessibility.cc (revision 75254) |
+++ webkit/glue/webaccessibility.cc (working copy) |
@@ -380,6 +380,12 @@ |
// Add the source object to the cache and store its id. |
id = cache->addOrGetId(src); |
+ if (role == WebAccessibility::ROLE_EDITABLE_TEXT || |
+ role == WebAccessibility::ROLE_TEXTAREA || |
+ role == WebAccessibility::ROLE_TEXT_FIELD) { |
+ include_children = false; |
+ } |
+ |
if (include_children) { |
// Recursively create children. |
int child_count = src.childCount(); |