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

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

Issue 120443003: Add autofill preview support for Textarea (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update code as per review comments Created 6 years, 11 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 | « Source/core/html/HTMLTextAreaElement.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLTextAreaElement.cpp
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp
index 751d378a598c150e50b68a2da65b0f1be8d6dcca..dcb5386f10078a40d8fad15e3d9c2abfe198cb68 100644
--- a/Source/core/html/HTMLTextAreaElement.cpp
+++ b/Source/core/html/HTMLTextAreaElement.cpp
@@ -433,6 +433,20 @@ void HTMLTextAreaElement::setMaxLength(int newValue, ExceptionState& exceptionSt
setIntegralAttribute(maxlengthAttr, newValue);
}
+String HTMLTextAreaElement::suggestedValue() const
+{
+ return m_suggestedValue;
+}
+
+void HTMLTextAreaElement::setSuggestedValue(const String& value)
+{
+ m_suggestedValue = value;
+ setInnerTextValue(m_suggestedValue);
+ updatePlaceholderVisibility(false);
+ setNeedsStyleRecalc();
+ setFormControlValueMatchesRenderer(true);
+}
+
String HTMLTextAreaElement::validationMessage() const
{
if (!willValidate())
« no previous file with comments | « Source/core/html/HTMLTextAreaElement.h ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698