diff options
-rw-r--r-- | chrome/browser/accessibility/browser_accessibility_cocoa.mm | 2 | ||||
-rw-r--r-- | webkit/glue/webaccessibility.cc | 2 | ||||
-rw-r--r-- | webkit/glue/webaccessibility.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/accessibility/browser_accessibility_cocoa.mm b/chrome/browser/accessibility/browser_accessibility_cocoa.mm index 77ca8b4..a86a0bb 100644 --- a/chrome/browser/accessibility/browser_accessibility_cocoa.mm +++ b/chrome/browser/accessibility/browser_accessibility_cocoa.mm @@ -256,7 +256,7 @@ bool GetState(BrowserAccessibility* accessibility, int state) { WebAccessibility::Attribute urlAttribute = [[self role] isEqualToString:@"AXWebArea"] ? WebAccessibility::ATTR_DOC_URL : - WebAccessibility::ATTR_LINK_TARGET; + WebAccessibility::ATTR_URL; return NSStringForWebAccessibilityAttribute( browserAccessibility_->attributes(), urlAttribute); diff --git a/webkit/glue/webaccessibility.cc b/webkit/glue/webaccessibility.cc index 0888a62..c3ef261 100644 --- a/webkit/glue/webaccessibility.cc +++ b/webkit/glue/webaccessibility.cc @@ -324,6 +324,8 @@ void WebAccessibility::Init(const WebKit::WebAccessibilityObject& src, attributes[ATTR_SHORTCUT] = src.keyboardShortcut(); if (src.hasComputedStyle()) attributes[ATTR_DISPLAY] = src.computedStyleDisplay(); + if (!src.url().isEmpty()) + attributes[ATTR_URL] = src.url().spec().utf16(); WebKit::WebNode node = src.node(); diff --git a/webkit/glue/webaccessibility.h b/webkit/glue/webaccessibility.h index a8e4b11..c073502 100644 --- a/webkit/glue/webaccessibility.h +++ b/webkit/glue/webaccessibility.h @@ -175,8 +175,8 @@ struct WebAccessibility { ATTR_DISPLAY, ATTR_HELP, ATTR_HTML_TAG, - ATTR_LINK_TARGET, ATTR_SHORTCUT, + ATTR_URL, NUM_ATTRIBUTES }; |