diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-02-24 16:36:50 +0100 |
commit | ad0d549d4cc13433f77c1ac8f0ab379c83d93f28 (patch) | |
tree | b34b0daceb7c8e7fdde4b4ec43650ab7caadb0a9 /Source/WebCore/html/HTMLInputElement.h | |
parent | 03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (diff) | |
download | qtwebkit-ad0d549d4cc13433f77c1ac8f0ab379c83d93f28.tar.gz |
Imported WebKit commit bb52bf3c0119e8a128cd93afe5572413a8617de9 (http://svn.webkit.org/repository/webkit/trunk@108790)
Diffstat (limited to 'Source/WebCore/html/HTMLInputElement.h')
-rw-r--r-- | Source/WebCore/html/HTMLInputElement.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/WebCore/html/HTMLInputElement.h b/Source/WebCore/html/HTMLInputElement.h index b6fa0f623..39cb48ba6 100644 --- a/Source/WebCore/html/HTMLInputElement.h +++ b/Source/WebCore/html/HTMLInputElement.h @@ -121,7 +121,7 @@ public: virtual HTMLElement* placeholderElement() const; bool checked() const { return m_isChecked; } - void setChecked(bool, bool sendChangeEvent = false); + void setChecked(bool, TextFieldEventBehavior = DispatchNoEvent); // 'indeterminate' is a state independent of the checked state that causes the control to draw in a way that hides the actual state. bool indeterminate() const { return m_isIndeterminate; } @@ -136,7 +136,7 @@ public: void setType(const String&); String value() const; - void setValue(const String&, bool sendChangeEvent = false); + void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent); void setValueForUser(const String&); // Checks if the specified string would be a valid value. // We should not call this for types with no string value such as CHECKBOX and RADIO. @@ -160,7 +160,7 @@ public: void setValueAsDate(double, ExceptionCode&); double valueAsNumber() const; - void setValueAsNumber(double, ExceptionCode&, bool sendChangeEvent = false); + void setValueAsNumber(double, ExceptionCode&, TextFieldEventBehavior = DispatchNoEvent); virtual String placeholder() const; virtual void setPlaceholder(const String&); @@ -225,7 +225,7 @@ public: // Otherwise, they would be private. CheckedRadioButtons& checkedRadioButtons() const; void updateCheckedRadioButtons(); - void setValueInternal(const String&, bool sendChangeEvent); + void setValueInternal(const String&, TextFieldEventBehavior); void cacheSelectionInResponseToSetValue(int caretOffset) { cacheSelection(caretOffset, caretOffset, SelectionHasNoDirection); } @@ -276,6 +276,8 @@ private: virtual void accessKeyAction(bool sendMouseEvents); virtual void parseAttribute(Attribute*) OVERRIDE; + virtual bool isPresentationAttribute(Attribute*) const OVERRIDE; + virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRIDE; virtual void finishParsingChildren(); virtual void copyNonAttributeProperties(const Element* source); @@ -328,7 +330,7 @@ private: bool getAllowedValueStepWithDecimalPlaces(AnyStepHandling, double*, unsigned*) const; // Helper for stepUp()/stepDown(). Adds step value * count to the current value. - void applyStep(double count, AnyStepHandling, bool sendChangeEvent, ExceptionCode&); + void applyStep(double count, AnyStepHandling, TextFieldEventBehavior, ExceptionCode&); double alignValueForStep(double value, double step, unsigned currentDecimalPlaces, unsigned stepDecimalPlaces); #if ENABLE(DATALIST) |