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

Side by Side Diff: Source/core/html/HTMLSelectElement.h

Issue 27142002: Use DEFINE_NODE_TYPE_CASTS instead of using manual toHTMLFooElement() (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/html/HTMLScriptElement.h ('k') | Source/core/html/HTMLSourceElement.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 * 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
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLScriptElement.h ('k') | Source/core/html/HTMLSourceElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698