| 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 de6fcdde2f09775dea30c3e9102bccfd33510ddb..b51a21ff7d9766e7958f937cf877fd94899a6735 100644
|
| --- a/third_party/WebKit/Source/web/WebAXObject.cpp
|
| +++ b/third_party/WebKit/Source/web/WebAXObject.cpp
|
| @@ -290,11 +290,18 @@ bool WebAXObject::IsCheckable() const {
|
| return private_->IsCheckable();
|
| }
|
|
|
| -WebAXCheckedState WebAXObject::CheckedState() const {
|
| +WebAXButtonState WebAXObject::CheckedState() const {
|
| if (IsDetached())
|
| - return WebAXCheckedFalse;
|
| + return WebAXButtonStateOff;
|
|
|
| - return static_cast<WebAXCheckedState>(private_->CheckedState());
|
| + return static_cast<WebAXButtonState>(private_->CheckedState());
|
| +}
|
| +
|
| +WebAXButtonState WebAXObject::PressedState() const {
|
| + if (IsDetached())
|
| + return WebAXButtonStateOff;
|
| +
|
| + return static_cast<WebAXButtonState>(private_->PressedState());
|
| }
|
|
|
| bool WebAXObject::IsClickable() const {
|
| @@ -388,13 +395,6 @@ bool WebAXObject::IsPasswordField() const {
|
| return private_->IsPasswordField();
|
| }
|
|
|
| -bool WebAXObject::IsPressed() const {
|
| - if (IsDetached())
|
| - return false;
|
| -
|
| - return private_->IsPressed();
|
| -}
|
| -
|
| bool WebAXObject::IsReadOnly() const {
|
| if (IsDetached())
|
| return false;
|
|
|