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 a1e12cfb4a719699e787889d5485f5da85d60c00..4b2be9c423c71d622f9f49202e64fd40deb0bec8 100644 |
--- a/content/browser/accessibility/browser_accessibility_cocoa.mm |
+++ b/content/browser/accessibility/browser_accessibility_cocoa.mm |
@@ -2785,10 +2785,8 @@ NSString* const NSAccessibilityRequiredAttribute = @"AXRequired"; |
return GetState(browserAccessibility_, ui::AX_STATE_FOCUSABLE); |
} |
- if ([attribute isEqualToString:NSAccessibilityValueAttribute]) { |
- return browserAccessibility_->GetBoolAttribute( |
- ui::AX_ATTR_CAN_SET_VALUE); |
- } |
+ if ([attribute isEqualToString:NSAccessibilityValueAttribute]) |
+ return browserAccessibility_->HasAction(ui::AX_ACTION_SET_VALUE); |
dmazzoni
2017/05/19 19:24:25
Love it, this is a lot cleaner!
Patti Lor
2017/05/22 00:20:59
Yay :)
|
if ([attribute isEqualToString:NSAccessibilitySelectedTextRangeAttribute] && |
browserAccessibility_->HasState(ui::AX_STATE_EDITABLE)) { |