| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 bool AXListBoxOption::isSelectedOptionActive() const | 107 bool AXListBoxOption::isSelectedOptionActive() const |
| 108 { | 108 { |
| 109 HTMLSelectElement* listBoxParentNode = listBoxOptionParentNode(); | 109 HTMLSelectElement* listBoxParentNode = listBoxOptionParentNode(); |
| 110 if (!listBoxParentNode) | 110 if (!listBoxParentNode) |
| 111 return false; | 111 return false; |
| 112 | 112 |
| 113 return listBoxParentNode->activeSelectionEndListIndex() == listBoxOptionInde
x(); | 113 return listBoxParentNode->activeSelectionEndListIndex() == listBoxOptionInde
x(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 bool AXListBoxOption::computeAccessibilityIsIgnored() const | 116 bool AXListBoxOption::computeAccessibilityIsIgnored(PassRefPtr<TypeBuilder::Arra
y<TypeBuilder::Accessibility::AXProperty>> ignoredReasons) const |
| 117 { | 117 { |
| 118 if (!node()) | 118 if (!node()) |
| 119 return true; | 119 return true; |
| 120 | 120 |
| 121 if (accessibilityIsIgnoredByDefault()) | 121 if (accessibilityIsIgnoredByDefault(ignoredReasons)) |
| 122 return true; | 122 return true; |
| 123 | 123 |
| 124 return false; | 124 return false; |
| 125 } | 125 } |
| 126 | 126 |
| 127 bool AXListBoxOption::canSetSelectedAttribute() const | 127 bool AXListBoxOption::canSetSelectedAttribute() const |
| 128 { | 128 { |
| 129 if (!isHTMLOptionElement(node())) | 129 if (!isHTMLOptionElement(node())) |
| 130 return false; | 130 return false; |
| 131 | 131 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 unsigned length = listItems.size(); | 193 unsigned length = listItems.size(); |
| 194 for (unsigned i = 0; i < length; i++) { | 194 for (unsigned i = 0; i < length; i++) { |
| 195 if (listItems[i] == node()) | 195 if (listItems[i] == node()) |
| 196 return i; | 196 return i; |
| 197 } | 197 } |
| 198 | 198 |
| 199 return -1; | 199 return -1; |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace blink | 202 } // namespace blink |
| OLD | NEW |