OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. | 8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
11 * modify it under the terms of the GNU Library General Public | 11 * modify it under the terms of the GNU Library General Public |
12 * License as published by the Free Software Foundation; either | 12 * License as published by the Free Software Foundation; either |
13 * version 2 of the License, or (at your option) any later version. | 13 * version 2 of the License, or (at your option) any later version. |
14 * | 14 * |
15 * This library is distributed in the hope that it will be useful, | 15 * This library is distributed in the hope that it will be useful, |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
18 * Library General Public License for more details. | 18 * Library General Public License for more details. |
19 * | 19 * |
20 * You should have received a copy of the GNU Library General Public License | 20 * You should have received a copy of the GNU Library General Public License |
21 * along with this library; see the file COPYING.LIB. If not, write to | 21 * along with this library; see the file COPYING.LIB. If not, write to |
22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 * Boston, MA 02110-1301, USA. | 23 * Boston, MA 02110-1301, USA. |
24 * | 24 * |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "HTMLOptionElement.h" | 28 #include "HTMLOptionElement.h" |
29 | 29 |
30 #include "Attribute.h" | |
31 #include "Document.h" | |
32 #include "ExceptionCode.h" | |
33 #include "HTMLDataListElement.h" | 30 #include "HTMLDataListElement.h" |
34 #include "HTMLNames.h" | 31 #include "HTMLNames.h" |
35 #include "HTMLParserIdioms.h" | 32 #include "HTMLParserIdioms.h" |
36 #include "HTMLSelectElement.h" | 33 #include "HTMLSelectElement.h" |
37 #include "NodeRenderStyle.h" | |
38 #include "NodeRenderingContext.h" | |
39 #include "NodeTraversal.h" | |
40 #include "ScriptElement.h" | |
41 #include "Text.h" | |
42 #include "core/css/StyleResolver.h" | 34 #include "core/css/StyleResolver.h" |
| 35 #include "core/dom/Attribute.h" |
| 36 #include "core/dom/Document.h" |
| 37 #include "core/dom/ExceptionCode.h" |
| 38 #include "core/dom/NodeRenderStyle.h" |
| 39 #include "core/dom/NodeRenderingContext.h" |
| 40 #include "core/dom/NodeTraversal.h" |
| 41 #include "core/dom/ScriptElement.h" |
| 42 #include "core/dom/Text.h" |
43 #include "core/rendering/RenderMenuList.h" | 43 #include "core/rendering/RenderMenuList.h" |
44 #include "core/rendering/RenderTheme.h" | 44 #include "core/rendering/RenderTheme.h" |
45 #include <wtf/StdLibExtras.h> | 45 #include <wtf/StdLibExtras.h> |
46 #include <wtf/text/StringBuilder.h> | 46 #include <wtf/text/StringBuilder.h> |
47 #include <wtf/Vector.h> | 47 #include <wtf/Vector.h> |
48 | 48 |
49 namespace WebCore { | 49 namespace WebCore { |
50 | 50 |
51 using namespace HTMLNames; | 51 using namespace HTMLNames; |
52 | 52 |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 const HTMLOptionElement* toHTMLOptionElement(const Node* node) | 401 const HTMLOptionElement* toHTMLOptionElement(const Node* node) |
402 { | 402 { |
403 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(optionTag)); | 403 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(optionTag)); |
404 return static_cast<const HTMLOptionElement*>(node); | 404 return static_cast<const HTMLOptionElement*>(node); |
405 } | 405 } |
406 | 406 |
407 #endif | 407 #endif |
408 | 408 |
409 } // namespace | 409 } // namespace |
OLD | NEW |