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

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

Issue 2089053002: Delay to apply |checked| attribute only if the document has form state to be restored. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/FormController.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/FormController.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/FormController.cpp b/third_party/WebKit/Source/core/html/forms/FormController.cpp
index 558ada8e8643ecfe6bd395117521aede6717fbae..b47bf7b762d5c57e37e58a3f73cdcd4a195b1be0 100644
--- a/third_party/WebKit/Source/core/html/forms/FormController.cpp
+++ b/third_party/WebKit/Source/core/html/forms/FormController.cpp
@@ -465,6 +465,11 @@ void FormController::setStateForNewFormElements(const Vector<String>& stateVecto
formStatesFromStateVector(stateVector, m_savedFormStateMap);
}
+bool FormController::hasFormStates() const
+{
+ return !m_savedFormStateMap.isEmpty();
+}
+
FormControlState FormController::takeStateForFormElement(const HTMLFormControlElementWithState& control)
{
if (m_savedFormStateMap.isEmpty())
« no previous file with comments | « third_party/WebKit/Source/core/html/forms/FormController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698