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

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

Issue 1523633002: Fix a crash when 'input' event handler for input[type=color] change the input type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void setEditingValue(const String&); 129 void setEditingValue(const String&);
130 130
131 double valueAsDate(bool& isNull) const; 131 double valueAsDate(bool& isNull) const;
132 void setValueAsDate(double, ExceptionState&); 132 void setValueAsDate(double, ExceptionState&);
133 133
134 double valueAsNumber() const; 134 double valueAsNumber() const;
135 void setValueAsNumber(double, ExceptionState&, TextFieldEventBehavior = Disp atchNoEvent); 135 void setValueAsNumber(double, ExceptionState&, TextFieldEventBehavior = Disp atchNoEvent);
136 136
137 String valueWithDefault() const; 137 String valueWithDefault() const;
138 138
139 // It dispatched 'input' event for non-textfield types.
kochi 2015/12/14 05:01:44 This comment isn't clear to me. What is "It"? Why
tkent 2015/12/14 05:18:18 I'm sorry for the unclear comment. - it -> This fu
139 void setValueFromRenderer(const String&); 140 void setValueFromRenderer(const String&);
140 141
141 int selectionStartForBinding(ExceptionState&) const; 142 int selectionStartForBinding(ExceptionState&) const;
142 int selectionEndForBinding(ExceptionState&) const; 143 int selectionEndForBinding(ExceptionState&) const;
143 String selectionDirectionForBinding(ExceptionState&) const; 144 String selectionDirectionForBinding(ExceptionState&) const;
144 void setSelectionStartForBinding(int, ExceptionState&); 145 void setSelectionStartForBinding(int, ExceptionState&);
145 void setSelectionEndForBinding(int, ExceptionState&); 146 void setSelectionEndForBinding(int, ExceptionState&);
146 void setSelectionDirectionForBinding(const String&, ExceptionState&); 147 void setSelectionDirectionForBinding(const String&, ExceptionState&);
147 void setSelectionRangeForBinding(int start, int end, ExceptionState&); 148 void setSelectionRangeForBinding(int start, int end, ExceptionState&);
148 void setSelectionRangeForBinding(int start, int end, const String& direction , ExceptionState&); 149 void setSelectionRangeForBinding(int start, int end, const String& direction , ExceptionState&);
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 // The ImageLoader must be owned by this element because the loader code ass umes 394 // The ImageLoader must be owned by this element because the loader code ass umes
394 // that it lives as long as its owning element lives. If we move the loader into 395 // that it lives as long as its owning element lives. If we move the loader into
395 // the ImageInput object we may delete the loader while this element lives o n. 396 // the ImageInput object we may delete the loader while this element lives o n.
396 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 397 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
397 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r; 398 OwnPtrWillBeMember<ListAttributeTargetObserver> m_listAttributeTargetObserve r;
398 }; 399 };
399 400
400 } // namespace blink 401 } // namespace blink
401 402
402 #endif // HTMLInputElement_h 403 #endif // HTMLInputElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698