| Index: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
|
| diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
|
| index ec57e47f6437e4729c7b80c4b25ea8a2652a66a9..2623126f13cb2c7f687a93a333295d0651dde1db 100644
|
| --- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
|
| +++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
|
| @@ -1090,34 +1090,6 @@ bool AXNodeObject::isNativeSlider() const {
|
| return toHTMLInputElement(node)->type() == InputTypeNames::range;
|
| }
|
|
|
| -bool AXNodeObject::isChecked() const {
|
| - Node* node = this->getNode();
|
| - if (!node)
|
| - return false;
|
| -
|
| - // First test for native checkedness semantics
|
| - if (isHTMLInputElement(*node))
|
| - return toHTMLInputElement(*node).shouldAppearChecked();
|
| -
|
| - // Else, if this is an ARIA role checkbox or radio or menuitemcheckbox
|
| - // or menuitemradio or switch, respect the aria-checked attribute
|
| - switch (ariaRoleAttribute()) {
|
| - case CheckBoxRole:
|
| - case MenuItemCheckBoxRole:
|
| - case MenuItemRadioRole:
|
| - case RadioButtonRole:
|
| - case SwitchRole:
|
| - if (equalIgnoringCase(getAttribute(aria_checkedAttr), "true"))
|
| - return true;
|
| - return false;
|
| - default:
|
| - break;
|
| - }
|
| -
|
| - // Otherwise it's not checked
|
| - return false;
|
| -}
|
| -
|
| bool AXNodeObject::isClickable() const {
|
| if (getNode()) {
|
| if (getNode()->isElementNode() &&
|
| @@ -1462,16 +1434,6 @@ String AXNodeObject::text() const {
|
| return toElement(node)->innerText();
|
| }
|
|
|
| -AccessibilityButtonState AXNodeObject::checkboxOrRadioValue() const {
|
| - if (isNativeCheckboxInMixedState())
|
| - return ButtonStateMixed;
|
| -
|
| - if (isNativeCheckboxOrRadio())
|
| - return isChecked() ? ButtonStateOn : ButtonStateOff;
|
| -
|
| - return AXObject::checkboxOrRadioValue();
|
| -}
|
| -
|
| RGBA32 AXNodeObject::colorValue() const {
|
| if (!isHTMLInputElement(getNode()) || !isColorWell())
|
| return AXObject::colorValue();
|
| @@ -1710,15 +1672,6 @@ static bool isInSameNonInlineBlockFlow(LayoutObject* r1, LayoutObject* r2) {
|
| return b1 && b2 && b1 == b2;
|
| }
|
|
|
| -bool AXNodeObject::isNativeCheckboxInMixedState() const {
|
| - if (!isHTMLInputElement(m_node))
|
| - return false;
|
| -
|
| - HTMLInputElement* input = toHTMLInputElement(m_node);
|
| - return input->type() == InputTypeNames::checkbox &&
|
| - input->shouldAppearIndeterminate();
|
| -}
|
| -
|
| //
|
| // New AX name calculation.
|
| //
|
|
|