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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/accessibility/AXListBoxOption.h" | 30 #include "core/accessibility/AXListBoxOption.h" |
31 | 31 |
32 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.h" |
33 #include "core/html/HTMLOptGroupElement.h" | 33 #include "core/html/HTMLOptGroupElement.h" |
34 #include "core/html/HTMLOptionElement.h" | 34 #include "core/html/HTMLOptionElement.h" |
35 #include "core/html/HTMLSelectElement.h" | 35 #include "core/html/HTMLSelectElement.h" |
36 #include "core/rendering/RenderListBox.h" | 36 #include "core/rendering/RenderListBox.h" |
37 | 37 |
38 using namespace std; | |
39 | 38 |
40 namespace WebCore { | 39 namespace WebCore { |
41 | 40 |
42 using namespace HTMLNames; | 41 using namespace HTMLNames; |
43 | 42 |
44 AXListBoxOption::AXListBoxOption() | 43 AXListBoxOption::AXListBoxOption() |
45 : m_optionElement(0) | 44 : m_optionElement(0) |
46 { | 45 { |
47 } | 46 } |
48 | 47 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 unsigned length = listItems.size(); | 213 unsigned length = listItems.size(); |
215 for (unsigned i = 0; i < length; i++) { | 214 for (unsigned i = 0; i < length; i++) { |
216 if (listItems[i] == m_optionElement) | 215 if (listItems[i] == m_optionElement) |
217 return i; | 216 return i; |
218 } | 217 } |
219 | 218 |
220 return -1; | 219 return -1; |
221 } | 220 } |
222 | 221 |
223 } // namespace WebCore | 222 } // namespace WebCore |
OLD | NEW |