| Index: third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| index 29df97c32bb74b82cf9dfc6b20efe48bf5c6dd3c..c7c1704cda7669bb648ddc546be8b4d8bfd2e4c4 100644
|
| --- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| +++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
|
| @@ -909,17 +909,16 @@ String AXObject::actionVerb() const
|
|
|
| AccessibilityButtonState AXObject::checkboxOrRadioValue() const
|
| {
|
| - // If this is a real checkbox or radio button, AXLayoutObject will handle.
|
| + // If this is a real checkbox or radio button, AXNodeObject will handle it.
|
| // If it's an ARIA checkbox or radio, the aria-checked attribute should be used.
|
| -
|
| const AtomicString& result = getAttribute(aria_checkedAttr);
|
| if (equalIgnoringCase(result, "true"))
|
| return ButtonStateOn;
|
| if (equalIgnoringCase(result, "mixed")) {
|
| + // Only checkboxes should support the mixed state.
|
| AccessibilityRole role = ariaRoleAttribute();
|
| - if (role == RadioButtonRole || role == MenuItemRadioRole || role == SwitchRole)
|
| - return ButtonStateOff;
|
| - return ButtonStateMixed;
|
| + if (role == CheckBoxRole || role == MenuItemCheckBoxRole)
|
| + return ButtonStateMixed;
|
| }
|
|
|
| return ButtonStateOff;
|
|
|