diff options
author | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 19:24:04 +0000 |
---|---|---|
committer | ctguil@chromium.org <ctguil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 19:24:04 +0000 |
commit | 651e80926b412f76aa280ece14e515c5a52602ea (patch) | |
tree | f68f816d58749726d2ac38be9e2eeb1eb4d159b9 /webkit/glue/webaccessibility.cc | |
parent | b719142cac87c33ec2d6e99a238b5ecd48f87d68 (diff) | |
download | chromium_src-651e80926b412f76aa280ece14e515c5a52602ea.zip chromium_src-651e80926b412f76aa280ece14e515c5a52602ea.tar.gz chromium_src-651e80926b412f76aa280ece14e515c5a52602ea.tar.bz2 |
Set name of document accessibility nodes to document title.
BUG=36169
TEST=browser_tests:RendererAccessibilityBrowserTest.TestCrossPlatformAccessibilityTree
Review URL: http://codereview.chromium.org/3448016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webaccessibility.cc')
-rw-r--r-- | webkit/glue/webaccessibility.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/glue/webaccessibility.cc b/webkit/glue/webaccessibility.cc index 38b1cfd..2e75f19 100644 --- a/webkit/glue/webaccessibility.cc +++ b/webkit/glue/webaccessibility.cc @@ -314,6 +314,8 @@ void WebAccessibility::Init(const WebKit::WebAccessibilityObject& src, if (role == WebAccessibility::ROLE_DOCUMENT || role == WebAccessibility::ROLE_WEB_AREA) { WebKit::WebDocument document = src.document(); + if (name.empty()) + name = document.title(); attributes[ATTR_DOC_TITLE] = document.title(); attributes[ATTR_DOC_URL] = document.frame()->url().spec().utf16(); if (document.isXHTMLDocument()) |