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

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

Issue 2447653002: INPUT element: Do not dispatch events in detachLayoutTree(). (Closed)
Patch Set: Created 4 years, 1 month 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) 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 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2009, 2010, 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2009, 2010, 2011 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 int end, 96 int end,
97 TextFieldSelectionDirection = SelectionHasNoDirection); 97 TextFieldSelectionDirection = SelectionHasNoDirection);
98 Range* selection() const; 98 Range* selection() const;
99 99
100 virtual bool supportsAutocapitalize() const = 0; 100 virtual bool supportsAutocapitalize() const = 0;
101 virtual const AtomicString& defaultAutocapitalize() const = 0; 101 virtual const AtomicString& defaultAutocapitalize() const = 0;
102 const AtomicString& autocapitalize() const; 102 const AtomicString& autocapitalize() const;
103 void setAutocapitalize(const AtomicString&); 103 void setAutocapitalize(const AtomicString&);
104 104
105 void dispatchFormControlChangeEvent() final; 105 void dispatchFormControlChangeEvent() final;
106 void enqueueChangeEvent();
106 107
107 virtual String value() const = 0; 108 virtual String value() const = 0;
108 virtual void setValue(const String&, 109 virtual void setValue(const String&,
109 TextFieldEventBehavior = DispatchNoEvent) = 0; 110 TextFieldEventBehavior = DispatchNoEvent) = 0;
110 111
111 HTMLElement* innerEditorElement() const; 112 HTMLElement* innerEditorElement() const;
112 113
113 void selectionChanged(bool userTriggered); 114 void selectionChanged(bool userTriggered);
114 bool lastChangeWasUserEdit() const; 115 bool lastChangeWasUserEdit() const;
115 virtual void setInnerEditorValue(const String&); 116 virtual void setInnerEditorValue(const String&);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 205 }
205 206
206 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement); 207 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTextFormControlElement);
207 208
208 HTMLTextFormControlElement* enclosingTextFormControl(const Position&); 209 HTMLTextFormControlElement* enclosingTextFormControl(const Position&);
209 HTMLTextFormControlElement* enclosingTextFormControl(Node*); 210 HTMLTextFormControlElement* enclosingTextFormControl(Node*);
210 211
211 } // namespace blink 212 } // namespace blink
212 213
213 #endif 214 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698