| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool foundTextAlternative = false; | 146 bool foundTextAlternative = false; |
| 147 String textAlternative = ariaTextAlternative( | 147 String textAlternative = ariaTextAlternative( |
| 148 recursive, inAriaLabelledByTraversal, visited, nameFrom, relatedObjects, | 148 recursive, inAriaLabelledByTraversal, visited, nameFrom, relatedObjects, |
| 149 nameSources, &foundTextAlternative); | 149 nameSources, &foundTextAlternative); |
| 150 if (foundTextAlternative && !nameSources) | 150 if (foundTextAlternative && !nameSources) |
| 151 return textAlternative; | 151 return textAlternative; |
| 152 | 152 |
| 153 nameFrom = AXNameFromContents; | 153 nameFrom = AXNameFromContents; |
| 154 textAlternative = toHTMLOptionElement(getNode())->displayLabel(); | 154 textAlternative = toHTMLOptionElement(getNode())->displayLabel(); |
| 155 if (nameSources) { | 155 if (nameSources) { |
| 156 nameSources->append(NameSource(foundTextAlternative)); | 156 nameSources->push_back(NameSource(foundTextAlternative)); |
| 157 nameSources->back().type = nameFrom; | 157 nameSources->back().type = nameFrom; |
| 158 nameSources->back().text = textAlternative; | 158 nameSources->back().text = textAlternative; |
| 159 foundTextAlternative = true; | 159 foundTextAlternative = true; |
| 160 } | 160 } |
| 161 | 161 |
| 162 return textAlternative; | 162 return textAlternative; |
| 163 } | 163 } |
| 164 | 164 |
| 165 void AXListBoxOption::setSelected(bool selected) { | 165 void AXListBoxOption::setSelected(bool selected) { |
| 166 HTMLSelectElement* selectElement = listBoxOptionParentNode(); | 166 HTMLSelectElement* selectElement = listBoxOptionParentNode(); |
| (...skipping 14 matching lines...) Expand all 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 |