| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 return 0; | 192 return 0; |
| 193 } | 193 } |
| 194 | 194 |
| 195 int AXListBoxOption::listBoxOptionIndex() const | 195 int AXListBoxOption::listBoxOptionIndex() const |
| 196 { | 196 { |
| 197 HTMLSelectElement* selectElement = listBoxOptionParentNode(); | 197 HTMLSelectElement* selectElement = listBoxOptionParentNode(); |
| 198 if (!selectElement) | 198 if (!selectElement) |
| 199 return -1; | 199 return -1; |
| 200 | 200 |
| 201 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement>>& listItems = selectE
lement->listItems(); | 201 const HeapVector<Member<HTMLElement>>& listItems = selectElement->listItems(
); |
| 202 unsigned length = listItems.size(); | 202 unsigned length = listItems.size(); |
| 203 for (unsigned i = 0; i < length; i++) { | 203 for (unsigned i = 0; i < length; i++) { |
| 204 if (listItems[i] == getNode()) | 204 if (listItems[i] == getNode()) |
| 205 return i; | 205 return i; |
| 206 } | 206 } |
| 207 | 207 |
| 208 return -1; | 208 return -1; |
| 209 } | 209 } |
| 210 | 210 |
| 211 } // namespace blink | 211 } // namespace blink |
| OLD | NEW |