| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 if (layoutObject->isListBox() && parent->hasInheritedPresentationalRole()) | 75 if (layoutObject->isListBox() && parent->hasInheritedPresentationalRole()) |
| 76 return true; | 76 return true; |
| 77 | 77 |
| 78 return false; | 78 return false; |
| 79 } | 79 } |
| 80 | 80 |
| 81 bool AXListBoxOption::isEnabled() const { | 81 bool AXListBoxOption::isEnabled() const { |
| 82 if (!getNode()) | 82 if (!getNode()) |
| 83 return false; | 83 return false; |
| 84 | 84 |
| 85 if (equalIgnoringCase(getAttribute(aria_disabledAttr), "true")) | 85 if (equalIgnoringASCIICase(getAttribute(aria_disabledAttr), "true")) |
| 86 return false; | 86 return false; |
| 87 | 87 |
| 88 if (toElement(getNode())->hasAttribute(disabledAttr)) | 88 if (toElement(getNode())->hasAttribute(disabledAttr)) |
| 89 return false; | 89 return false; |
| 90 | 90 |
| 91 return true; | 91 return true; |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool AXListBoxOption::isSelected() const { | 94 bool AXListBoxOption::isSelected() const { |
| 95 return isHTMLOptionElement(getNode()) && | 95 return isHTMLOptionElement(getNode()) && |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 if (!getNode()) | 181 if (!getNode()) |
| 182 return 0; | 182 return 0; |
| 183 | 183 |
| 184 if (isHTMLOptionElement(getNode())) | 184 if (isHTMLOptionElement(getNode())) |
| 185 return toHTMLOptionElement(getNode())->ownerSelectElement(); | 185 return toHTMLOptionElement(getNode())->ownerSelectElement(); |
| 186 | 186 |
| 187 return 0; | 187 return 0; |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace blink | 190 } // namespace blink |
| OLD | NEW |