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

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

Issue 202813005: Add DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION() macro (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Slight clean up Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLTableSectionElement.h ('k') | Source/core/html/HTMLUnknownElement.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 6 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void handleBlurEvent() { } 128 virtual void handleBlurEvent() { }
129 129
130 String m_textAsOfLastFormControlChangeEvent; 130 String m_textAsOfLastFormControlChangeEvent;
131 bool m_lastChangeWasUserEdit; 131 bool m_lastChangeWasUserEdit;
132 132
133 int m_cachedSelectionStart; 133 int m_cachedSelectionStart;
134 int m_cachedSelectionEnd; 134 int m_cachedSelectionEnd;
135 TextFieldSelectionDirection m_cachedSelectionDirection; 135 TextFieldSelectionDirection m_cachedSelectionDirection;
136 }; 136 };
137 137
138 inline bool isHTMLTextFormControlElement(const Node& node) 138 inline bool isHTMLTextFormControlElement(const Element& element)
139 { 139 {
140 return node.isElementNode() && toElement(node).isTextFormControl(); 140 return element.isTextFormControl();
141 } 141 }
142 142
143 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); 143 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement);
144 144
145 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); 145 HTMLTextFormControlElement* enclosingTextFormControl(const Position&);
146 146
147 } // namespace 147 } // namespace
148 148
149 #endif 149 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTableSectionElement.h ('k') | Source/core/html/HTMLUnknownElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698