OLD | NEW |
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Node& node) |
139 { | 139 { |
140 return node.isElementNode() && toElement(node).isTextFormControl(); | 140 return node.isElementNode() && toElement(node).isTextFormControl(); |
141 } | 141 } |
142 | 142 |
143 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 143 DEFINE_ELEMENT_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 |
OLD | NEW |