OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the select element renderer in WebCore. | 2 * This file is part of the select element renderer in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 int m_optionsWidth; | 134 int m_optionsWidth; |
135 | 135 |
136 int m_lastActiveIndex; | 136 int m_lastActiveIndex; |
137 | 137 |
138 RefPtr<RenderStyle> m_optionStyle; | 138 RefPtr<RenderStyle> m_optionStyle; |
139 | 139 |
140 RefPtr<PopupMenu> m_popup; | 140 RefPtr<PopupMenu> m_popup; |
141 bool m_popupIsVisible; | 141 bool m_popupIsVisible; |
142 }; | 142 }; |
143 | 143 |
144 inline RenderMenuList* toRenderMenuList(RenderObject* object) | 144 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); |
145 { | |
146 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isMenuList()); | |
147 return static_cast<RenderMenuList*>(object); | |
148 } | |
149 | |
150 // This will catch anyone doing an unnecessary cast. | |
151 void toRenderMenuList(const RenderMenuList*); | |
152 | 145 |
153 } | 146 } |
154 | 147 |
155 #endif | 148 #endif |
OLD | NEW |