OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
4 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
10 * | 10 * |
(...skipping 14 matching lines...) Expand all Loading... |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #include "config.h" | 28 #include "config.h" |
29 #include "HTMLSelectElement.h" | 29 #include "HTMLSelectElement.h" |
30 | 30 |
31 #include "AXObjectCache.h" | 31 #include "AXObjectCache.h" |
32 #include "Attribute.h" | 32 #include "Attribute.h" |
33 #include "Chrome.h" | 33 #include "Chrome.h" |
34 #include "ChromeClient.h" | 34 #include "ChromeClient.h" |
| 35 #include "EventHandler.h" |
35 #include "EventNames.h" | 36 #include "EventNames.h" |
36 #include "ExceptionCodePlaceholder.h" | 37 #include "ExceptionCodePlaceholder.h" |
37 #include "FormController.h" | 38 #include "FormController.h" |
38 #include "FormDataList.h" | 39 #include "FormDataList.h" |
39 #include "Frame.h" | 40 #include "Frame.h" |
40 #include "HTMLFormElement.h" | 41 #include "HTMLFormElement.h" |
41 #include "HTMLNames.h" | 42 #include "HTMLNames.h" |
42 #include "HTMLOptGroupElement.h" | 43 #include "HTMLOptGroupElement.h" |
43 #include "HTMLOptionElement.h" | 44 #include "HTMLOptionElement.h" |
44 #include "HTMLOptionsCollection.h" | 45 #include "HTMLOptionsCollection.h" |
45 #include "KeyboardEvent.h" | 46 #include "KeyboardEvent.h" |
46 #include "LocalizedStrings.h" | 47 #include "LocalizedStrings.h" |
47 #include "MouseEvent.h" | 48 #include "MouseEvent.h" |
48 #include "NodeRenderingContext.h" | 49 #include "NodeRenderingContext.h" |
49 #include "NodeTraversal.h" | 50 #include "NodeTraversal.h" |
50 #include "Page.h" | 51 #include "Page.h" |
| 52 #include "PlatformMouseEvent.h" |
51 #include "RenderListBox.h" | 53 #include "RenderListBox.h" |
52 #include "RenderMenuList.h" | 54 #include "RenderMenuList.h" |
53 #include "RenderTheme.h" | 55 #include "RenderTheme.h" |
54 #include "ScriptEventListener.h" | 56 #include "ScriptEventListener.h" |
55 #include "SpatialNavigation.h" | 57 #include "SpatialNavigation.h" |
56 #include <wtf/text/StringBuilder.h> | 58 #include <wtf/text/StringBuilder.h> |
57 #include <wtf/unicode/Unicode.h> | 59 #include <wtf/unicode/Unicode.h> |
58 | 60 |
59 using namespace std; | 61 using namespace std; |
60 using namespace WTF::Unicode; | 62 using namespace WTF::Unicode; |
(...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 const Vector<HTMLElement*>& items = listItems(); | 1557 const Vector<HTMLElement*>& items = listItems(); |
1556 for (unsigned i = 0; i < items.size(); ++i) { | 1558 for (unsigned i = 0; i < items.size(); ++i) { |
1557 if (items[i]->hasTagName(optionTag)) | 1559 if (items[i]->hasTagName(optionTag)) |
1558 ++options; | 1560 ++options; |
1559 } | 1561 } |
1560 | 1562 |
1561 return options; | 1563 return options; |
1562 } | 1564 } |
1563 | 1565 |
1564 } // namespace | 1566 } // namespace |
OLD | NEW |