Chromium Code Reviews

Unified Diff: content/browser/accessibility/browser_accessibility_cocoa.mm

Issue 627603002: Handle dl role for browsertests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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];
}

Powered by Google App Engine