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) 2000 Dirk Mueller (mueller@kde.org) | 5 * (C) 2000 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 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 int m_lastOnChangeIndex; | 204 int m_lastOnChangeIndex; |
205 int m_activeSelectionAnchorIndex; | 205 int m_activeSelectionAnchorIndex; |
206 int m_activeSelectionEndIndex; | 206 int m_activeSelectionEndIndex; |
207 bool m_isProcessingUserDrivenChange; | 207 bool m_isProcessingUserDrivenChange; |
208 bool m_multiple; | 208 bool m_multiple; |
209 bool m_activeSelectionState; | 209 bool m_activeSelectionState; |
210 mutable bool m_shouldRecalcListItems; | 210 mutable bool m_shouldRecalcListItems; |
211 bool m_isParsingInProgress; | 211 bool m_isParsingInProgress; |
212 }; | 212 }; |
213 | 213 |
214 inline HTMLSelectElement* toHTMLSelectElement(Node* node) | 214 DEFINE_NODE_TYPE_CASTS(HTMLSelectElement, hasTagName(HTMLNames::selectTag)); |
215 { | |
216 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::select
Tag)); | |
217 return static_cast<HTMLSelectElement*>(node); | |
218 } | |
219 | |
220 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch
anyone doing an unnecessary cast. | |
221 | 215 |
222 } // namespace | 216 } // namespace |
223 | 217 |
224 #endif | 218 #endif |
OLD | NEW |