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

Unified Diff: third_party/WebKit/Source/web/WebAXObject.cpp

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Fix android test Created 3 years, 9 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: third_party/WebKit/Source/web/WebAXObject.cpp
diff --git a/third_party/WebKit/Source/web/WebAXObject.cpp b/third_party/WebKit/Source/web/WebAXObject.cpp
index 648e6c624d90e3a9db877baece686ddc15769a87..c5ef805842846b362774aa16bed81e692fd9925a 100644
--- a/third_party/WebKit/Source/web/WebAXObject.cpp
+++ b/third_party/WebKit/Source/web/WebAXObject.cpp
@@ -281,18 +281,11 @@ WebAXAriaCurrentState WebAXObject::ariaCurrentState() const {
return static_cast<WebAXAriaCurrentState>(m_private->ariaCurrentState());
}
-bool WebAXObject::isButtonStateMixed() const {
+WebAXCheckedState WebAXObject::checkedState() const {
if (isDetached())
- return false;
-
- return m_private->checkboxOrRadioValue() == ButtonStateMixed;
-}
-
-bool WebAXObject::isChecked() const {
- if (isDetached())
- return false;
+ return WebAXCheckedFalse;
- return m_private->isChecked();
+ return static_cast<WebAXCheckedState>(m_private->checkedState());
}
bool WebAXObject::isClickable() const {

Powered by Google App Engine
This is Rietveld 408576698