diff options
Diffstat (limited to 'Source/WebCore/html/HTMLTextAreaElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLTextAreaElement.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/WebCore/html/HTMLTextAreaElement.cpp b/Source/WebCore/html/HTMLTextAreaElement.cpp index 643725708..bf5125f8b 100644 --- a/Source/WebCore/html/HTMLTextAreaElement.cpp +++ b/Source/WebCore/html/HTMLTextAreaElement.cpp @@ -34,6 +34,7 @@ #include "Event.h" #include "EventNames.h" #include "ExceptionCode.h" +#include "FormController.h" #include "FormDataList.h" #include "Frame.h" #include "HTMLNames.h" @@ -98,18 +99,17 @@ const AtomicString& HTMLTextAreaElement::formControlType() const return textarea; } -bool HTMLTextAreaElement::saveFormControlState(String& result) const +FormControlState HTMLTextAreaElement::saveFormControlState() const { String currentValue = value(); if (currentValue == defaultValue()) - return false; - result = currentValue; - return true; + return FormControlState(); + return FormControlState(currentValue); } -void HTMLTextAreaElement::restoreFormControlState(const String& state) +void HTMLTextAreaElement::restoreFormControlState(const FormControlState& state) { - setValue(state); + setValue(state.value()); } void HTMLTextAreaElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) |