| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 case LinkRole: | 946 case LinkRole: |
| 947 return AXSupportedAction::Jump; | 947 return AXSupportedAction::Jump; |
| 948 case PopUpButtonRole: | 948 case PopUpButtonRole: |
| 949 return AXSupportedAction::Open; | 949 return AXSupportedAction::Open; |
| 950 default: | 950 default: |
| 951 return AXSupportedAction::Click; | 951 return AXSupportedAction::Click; |
| 952 } | 952 } |
| 953 } | 953 } |
| 954 | 954 |
| 955 AccessibilityButtonState AXObject::checkboxOrRadioValue() const { | 955 AccessibilityButtonState AXObject::checkboxOrRadioValue() const { |
| 956 const AtomicString& checkedAttribute = getAttribute(aria_checkedAttr); | 956 const AtomicString& checkedAttribute = |
| 957 getAOMPropertyOrARIAAttribute(AOMStringProperty::kChecked); |
| 957 if (equalIgnoringCase(checkedAttribute, "true")) | 958 if (equalIgnoringCase(checkedAttribute, "true")) |
| 958 return ButtonStateOn; | 959 return ButtonStateOn; |
| 959 | 960 |
| 960 if (equalIgnoringCase(checkedAttribute, "mixed")) { | 961 if (equalIgnoringCase(checkedAttribute, "mixed")) { |
| 961 // Only checkboxes should support the mixed state. | 962 // Only checkboxes should support the mixed state. |
| 962 AccessibilityRole role = ariaRoleAttribute(); | 963 AccessibilityRole role = ariaRoleAttribute(); |
| 963 if (role == CheckBoxRole || role == MenuItemCheckBoxRole) | 964 if (role == CheckBoxRole || role == MenuItemCheckBoxRole) |
| 964 return ButtonStateMixed; | 965 return ButtonStateMixed; |
| 965 } | 966 } |
| 966 | 967 |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1786 } | 1787 } |
| 1787 | 1788 |
| 1788 DEFINE_TRACE(AXObject) { | 1789 DEFINE_TRACE(AXObject) { |
| 1789 visitor->trace(m_children); | 1790 visitor->trace(m_children); |
| 1790 visitor->trace(m_parent); | 1791 visitor->trace(m_parent); |
| 1791 visitor->trace(m_cachedLiveRegionRoot); | 1792 visitor->trace(m_cachedLiveRegionRoot); |
| 1792 visitor->trace(m_axObjectCache); | 1793 visitor->trace(m_axObjectCache); |
| 1793 } | 1794 } |
| 1794 | 1795 |
| 1795 } // namespace blink | 1796 } // namespace blink |
| OLD | NEW |