| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 protected: | 114 protected: |
| 115 HTMLTextFormControlElement(const QualifiedName&, Document&, HTMLFormElement*
); | 115 HTMLTextFormControlElement(const QualifiedName&, Document&, HTMLFormElement*
); |
| 116 bool isPlaceholderEmpty() const; | 116 bool isPlaceholderEmpty() const; |
| 117 virtual void updatePlaceholderText() = 0; | 117 virtual void updatePlaceholderText() = 0; |
| 118 | 118 |
| 119 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 119 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
| 120 | 120 |
| 121 void cacheSelection(int start, int end, TextFieldSelectionDirection directio
n) | 121 void cacheSelection(int start, int end, TextFieldSelectionDirection directio
n) |
| 122 { | 122 { |
| 123 ASSERT(start >= 0); | 123 DCHECK_GE(start, 0); |
| 124 m_cachedSelectionStart = start; | 124 m_cachedSelectionStart = start; |
| 125 m_cachedSelectionEnd = end; | 125 m_cachedSelectionEnd = end; |
| 126 m_cachedSelectionDirection = direction; | 126 m_cachedSelectionDirection = direction; |
| 127 } | 127 } |
| 128 | 128 |
| 129 void restoreCachedSelection(); | 129 void restoreCachedSelection(); |
| 130 | 130 |
| 131 void defaultEventHandler(Event*) override; | 131 void defaultEventHandler(Event*) override; |
| 132 virtual void subtreeHasChanged() = 0; | 132 virtual void subtreeHasChanged() = 0; |
| 133 | 133 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } | 172 } |
| 173 | 173 |
| 174 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); | 174 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); |
| 175 | 175 |
| 176 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); | 176 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); |
| 177 HTMLTextFormControlElement* enclosingTextFormControl(Node*); | 177 HTMLTextFormControlElement* enclosingTextFormControl(Node*); |
| 178 | 178 |
| 179 } // namespace blink | 179 } // namespace blink |
| 180 | 180 |
| 181 #endif | 181 #endif |
| OLD | NEW |