| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 void restoreCachedSelection(); | 127 void restoreCachedSelection(); |
| 128 | 128 |
| 129 virtual void defaultEventHandler(Event*) override; | 129 virtual void defaultEventHandler(Event*) override; |
| 130 virtual void subtreeHasChanged() = 0; | 130 virtual void subtreeHasChanged() = 0; |
| 131 | 131 |
| 132 void setLastChangeWasNotUserEdit() { m_lastChangeWasUserEdit = false; } | 132 void setLastChangeWasNotUserEdit() { m_lastChangeWasUserEdit = false; } |
| 133 | 133 |
| 134 String valueWithHardLineBreaks() const; | 134 String valueWithHardLineBreaks() const; |
| 135 | 135 |
| 136 virtual bool shouldDispatchFormControlChangeEvent(String&, String&); | 136 virtual bool shouldDispatchFormControlChangeEvent(String&, String&); |
| 137 virtual void copyNonAttributePropertiesFromElement(const Element&) override; |
| 137 | 138 |
| 138 private: | 139 private: |
| 139 int computeSelectionStart() const; | 140 int computeSelectionStart() const; |
| 140 int computeSelectionEnd() const; | 141 int computeSelectionEnd() const; |
| 141 TextFieldSelectionDirection computeSelectionDirection() const; | 142 TextFieldSelectionDirection computeSelectionDirection() const; |
| 142 | 143 |
| 143 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType) ov
erride final; | 144 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType) ov
erride final; |
| 144 virtual void dispatchBlurEvent(Element* newFocusedElement, WebFocusType) ove
rride final; | 145 virtual void dispatchBlurEvent(Element* newFocusedElement, WebFocusType) ove
rride final; |
| 145 void scheduleSelectEvent(); | 146 void scheduleSelectEvent(); |
| 146 | 147 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 167 } | 168 } |
| 168 | 169 |
| 169 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 170 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
| 170 | 171 |
| 171 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 172 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
| 172 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 173 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
| 173 | 174 |
| 174 } // namespace | 175 } // namespace |
| 175 | 176 |
| 176 #endif | 177 #endif |
| OLD | NEW |