summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 20:12:29 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-18 20:12:29 +0000
commit09032f2c243693f4a765f19279fa797ccbd801cb (patch)
tree91e2676ff6f92d5be6d9e45f009d4b43b9447553 /webkit/glue
parentd566da07e24f38b2edb6cf0b281f411d446434db (diff)
downloadchromium_src-09032f2c243693f4a765f19279fa797ccbd801cb.zip
chromium_src-09032f2c243693f4a765f19279fa797ccbd801cb.tar.gz
chromium_src-09032f2c243693f4a765f19279fa797ccbd801cb.tar.bz2
Quick fix for problems with editable text field accessibility by not sending
children of text fields from the renderer to the browser. The child containing the text appeared to be redundant anyway. BUG=none TEST=updated unit test, manual testing with screen readers Review URL: http://codereview.chromium.org/6469038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/webaccessibility.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/webkit/glue/webaccessibility.cc b/webkit/glue/webaccessibility.cc
index b96266b..f6df3b2 100644
--- a/webkit/glue/webaccessibility.cc
+++ b/webkit/glue/webaccessibility.cc
@@ -380,6 +380,12 @@ void WebAccessibility::Init(const WebKit::WebAccessibilityObject& src,
// 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();