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

Unified Diff: third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp

Issue 2879063003: INPUT element: Stop saving/restoring values of input[type=hidden]. (Closed)
Patch Set: Created 3 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/HiddenInputType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp b/third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp
index 6365ef8e6f035f120f9f96e59697a264cb8ef2c0..aec2dd7dc5eec4a231d9c3d8056e45778e5bc062 100644
--- a/third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp
@@ -58,18 +58,8 @@ const AtomicString& HiddenInputType::FormControlType() const {
return InputTypeNames::hidden;
}
-FormControlState HiddenInputType::SaveFormControlState() const {
- // valueAttributeWasUpdatedAfterParsing() never be true for form
- // controls create by createElement() or cloneNode(). It's ok for
- // now because we restore values only to form controls created by
- // parsing.
- return GetElement().ValueAttributeWasUpdatedAfterParsing()
- ? FormControlState(GetElement().value())
- : FormControlState();
-}
-
-void HiddenInputType::RestoreFormControlState(const FormControlState& state) {
- GetElement().setAttribute(valueAttr, AtomicString(state[0]));
+bool HiddenInputType::ShouldSaveAndRestoreFormControlState() const {
+ return false;
}
bool HiddenInputType::SupportsValidation() const {
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/HiddenInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698