Index: content/browser/accessibility/browser_accessibility_cocoa.mm |
diff --git a/content/browser/accessibility/browser_accessibility_cocoa.mm b/content/browser/accessibility/browser_accessibility_cocoa.mm |
index a4b31fc227b19ee2e5d79a32dc0bab41b6942e3d..75c3ff1fe831d4e596d28318035c7bd7dabb647b 100644 |
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm |
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm |
@@ -700,16 +700,11 @@ NSDictionary* attributeToMethodNameMap = nil; |
return @"AXSecureTextField"; |
} |
- NSString* htmlTag = NSStringForStringAttribute( |
- browserAccessibility_, ui::AX_ATTR_HTML_TAG); |
+ if (browserAccessibilityRole == ui::AX_ROLE_DESCRIPTION_LIST) |
+ return @"AXDescriptionList"; |
- if (browserAccessibilityRole == ui::AX_ROLE_LIST) { |
- if ([htmlTag isEqualToString:@"dl"]) { |
- return @"AXDescriptionList"; |
- } else { |
- return @"AXContentList"; |
- } |
- } |
+ if (browserAccessibilityRole == ui::AX_ROLE_LIST) |
+ return @"AXContentList"; |
return [AXPlatformNodeCocoa nativeSubroleFromAXRole:browserAccessibilityRole]; |
} |