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

Unified Diff: third_party/WebKit/Source/core/html/HTMLTextAreaElement.h

Issue 2735633006: INPUT/TEXTAREA elements: Dispatch 'select' event only if text selection is changed. (Closed)
Patch Set: Remove throttling Created 3 years, 9 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: third_party/WebKit/Source/core/html/HTMLTextAreaElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.h b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.h
index 9fd8c06028711d7d57115abd16d64298fe91e31f..6e80038dc1886b4596e8b112f7348d8803444f2f 100644
--- a/third_party/WebKit/Source/core/html/HTMLTextAreaElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLTextAreaElement.h
@@ -45,7 +45,9 @@ class CORE_EXPORT HTMLTextAreaElement final : public TextControlElement {
String value() const override;
void setValue(const String&,
- TextFieldEventBehavior = DispatchNoEvent) override;
+ TextFieldEventBehavior = DispatchNoEvent,
+ TextControlSetValueSelection =
+ TextControlSetValueSelection::kSetSelectionToEnd) override;
String defaultValue() const;
void setDefaultValue(const String&);
int textLength() const { return value().length(); }
@@ -79,7 +81,9 @@ class CORE_EXPORT HTMLTextAreaElement final : public TextControlElement {
void updateValue() const;
void setInnerEditorValue(const String&) override;
void setNonDirtyValue(const String&);
- void setValueCommon(const String&, TextFieldEventBehavior);
+ void setValueCommon(const String&,
+ TextFieldEventBehavior,
+ TextControlSetValueSelection);
bool isPlaceholderVisible() const override { return m_isPlaceholderVisible; }
void setPlaceholderVisibility(bool) override;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLInputElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698