Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2007)

Unified Diff: content/shell/test_runner/web_ax_object_proxy.cc

Issue 2694903010: AX checked state changes (Closed)
Patch Set: git cl try Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/test_runner/web_ax_object_proxy.cc
diff --git a/content/shell/test_runner/web_ax_object_proxy.cc b/content/shell/test_runner/web_ax_object_proxy.cc
index 36242d0d042224d80e5408228b64566b6fb6f710..7ef4798385a85fb8725e45c7a056492e32da8f51 100644
--- a/content/shell/test_runner/web_ax_object_proxy.cc
+++ b/content/shell/test_runner/web_ax_object_proxy.cc
@@ -1020,7 +1020,7 @@ bool WebAXObjectProxy::IsExpanded() {
bool WebAXObjectProxy::IsChecked() {
accessibility_object_.UpdateLayoutAndCheckValidity();
- return accessibility_object_.IsChecked();
+ return accessibility_object_.CheckedState() != blink::WebAXCheckedFalse;
}
bool WebAXObjectProxy::IsCollapsed() {
@@ -1233,7 +1233,7 @@ bool WebAXObjectProxy::IsClickable() {
bool WebAXObjectProxy::IsButtonStateMixed() {
accessibility_object_.UpdateLayoutAndCheckValidity();
- return accessibility_object_.IsButtonStateMixed();
+ return accessibility_object_.CheckedState() == blink::WebAXCheckedMixed;
}
v8::Local<v8::Object> WebAXObjectProxy::AriaControlsElementAtIndex(
« no previous file with comments | « content/renderer/accessibility/blink_ax_tree_source.cc ('k') | content/test/data/accessibility/aom/aom-checked.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698