| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 int AXListBoxOption::listBoxOptionIndex() const | 203 int AXListBoxOption::listBoxOptionIndex() const |
| 204 { | 204 { |
| 205 if (!m_optionElement) | 205 if (!m_optionElement) |
| 206 return -1; | 206 return -1; |
| 207 | 207 |
| 208 HTMLSelectElement* selectElement = listBoxOptionParentNode(); | 208 HTMLSelectElement* selectElement = listBoxOptionParentNode(); |
| 209 if (!selectElement) | 209 if (!selectElement) |
| 210 return -1; | 210 return -1; |
| 211 | 211 |
| 212 const Vector<HTMLElement*>& listItems = selectElement->listItems(); | 212 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& listItems = select
Element->listItems(); |
| 213 unsigned length = listItems.size(); | 213 unsigned length = listItems.size(); |
| 214 for (unsigned i = 0; i < length; i++) { | 214 for (unsigned i = 0; i < length; i++) { |
| 215 if (listItems[i] == m_optionElement) | 215 if (listItems[i] == m_optionElement) |
| 216 return i; | 216 return i; |
| 217 } | 217 } |
| 218 | 218 |
| 219 return -1; | 219 return -1; |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace WebCore | 222 } // namespace WebCore |
| OLD | NEW |