Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: Source/core/rendering/RenderMenuList.h

Issue 33983003: Introduce DEFINE_RENDER_OBJECT_TYPE_CASTS to replace manual toRenderFoo, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/rendering/RenderMedia.h ('k') | Source/core/rendering/RenderMeter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMedia.h ('k') | Source/core/rendering/RenderMeter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698