Index: third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
diff --git a/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp b/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
index 79b691f1f1450eaeb933717b28af9b6846cd699a..f8b18a716f713697c9a8bce941f6c15ddedd977b 100644 |
--- a/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
+++ b/third_party/WebKit/Source/modules/accessibility/AXMenuListOption.cpp |
@@ -49,6 +49,18 @@ void AXMenuListOption::detach() |
AXMockObject::detach(); |
} |
+AccessibilityRole AXMenuListOption::roleValue() const |
+{ |
+ const AtomicString& ariaRole = getAttribute(roleAttr); |
+ if (ariaRole.isEmpty()) |
+ return MenuListOptionRole; |
+ |
+ AccessibilityRole role = ariaRoleToWebCoreRole(ariaRole); |
+ if (role) |
+ return role; |
+ return MenuListOptionRole; |
+} |
+ |
Element* AXMenuListOption::actionElement() const |
{ |
return m_element; |