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

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

Issue 23991004: Generate toFooElement() functions from tagname data (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 int m_lastOnChangeIndex; 203 int m_lastOnChangeIndex;
204 int m_activeSelectionAnchorIndex; 204 int m_activeSelectionAnchorIndex;
205 int m_activeSelectionEndIndex; 205 int m_activeSelectionEndIndex;
206 bool m_isProcessingUserDrivenChange; 206 bool m_isProcessingUserDrivenChange;
207 bool m_multiple; 207 bool m_multiple;
208 bool m_activeSelectionState; 208 bool m_activeSelectionState;
209 mutable bool m_shouldRecalcListItems; 209 mutable bool m_shouldRecalcListItems;
210 bool m_isParsingInProgress; 210 bool m_isParsingInProgress;
211 }; 211 };
212 212
213 inline HTMLSelectElement* toHTMLSelectElement(Node* node)
214 {
215 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(HTMLNames::select Tag));
216 return static_cast<HTMLSelectElement*>(node);
217 }
218
219 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch anyone doing an unnecessary cast. 213 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch anyone doing an unnecessary cast.
220 214
221 } // namespace 215 } // namespace
222 216
223 #endif 217 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698