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

Unified Diff: Source/core/html/HTMLTextAreaElement.cpp

Issue 460343004: Fix update of validity cache value, so that it reflects the correct state of any FormControlElement. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
Index: Source/core/html/HTMLTextAreaElement.cpp
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp
index 8480199a6472428e6aefb13aeb91361ec073a5cf..7ad42d371fdce9025b9eb4be77def06a100c666c 100644
--- a/Source/core/html/HTMLTextAreaElement.cpp
+++ b/Source/core/html/HTMLTextAreaElement.cpp
@@ -572,4 +572,13 @@ bool HTMLTextAreaElement::supportsAutofocus() const
return true;
}
+void HTMLTextAreaElement::detach(const AttachContext& context)
+{
+ // Since we do a lazy update from renderer, do it if we have
+ // failed to do a lazy update. Updated value will be needed
+ // while saving the form control state.
tkent 2014/09/03 08:04:44 I don't understand the comment. Does the code to s
spartha 2014/09/03 08:50:57 It uses value(). It tries to update m_value in the
tkent 2014/09/03 09:11:27 Thanks. I understand. We should remove ASSERT(ren
spartha 2014/09/03 14:47:33 Done.
+ updateValue();
+ HTMLTextFormControlElement::detach(context);
+}
+
}

Powered by Google App Engine
This is Rietveld 408576698