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

Unified Diff: Source/web/WebTextAreaElement.cpp

Issue 133443011: Add text field change handling for autofill preview in textarea element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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/web/WebTextAreaElement.cpp
diff --git a/Source/web/WebTextAreaElement.cpp b/Source/web/WebTextAreaElement.cpp
index c4ecd8b95e8db4b88c02170538f32e9b435ce029..e55410e1f7cb41cb3c1b4efb86a36d5f00552763 100644
--- a/Source/web/WebTextAreaElement.cpp
+++ b/Source/web/WebTextAreaElement.cpp
@@ -60,6 +60,11 @@ WebString WebTextAreaElement::suggestedValue() const
return constUnwrap<HTMLTextAreaElement>()->suggestedValue();
}
+void WebTextAreaElement::setSelectionRange(int start, int end)
+{
+ unwrap<HTMLTextAreaElement>()->setSelectionRange(start, end);
+}
+
WebTextAreaElement::WebTextAreaElement(const PassRefPtr<HTMLTextAreaElement>& element)
: WebFormControlElement(element)
{

Powered by Google App Engine
This is Rietveld 408576698