|
INPUT/TEXTAREA elements: Dispatch 'select' event only if text selection is changed.
* TextControlElement::cacheSelection() and setSelectionRange()
This is the main change of this CL. We dispatch 'select' event only if new values
are not identical to old values.
* TextControlElement::setRangeText()
Add a new flag to TextControlElement::setValue() in order to control text
selection change in setValue(). setRangeText() doesn't want setValue() to change
text selection.
* web-platform-tests html/semantics/forms/textfieldselection/select-event.html
- Mark this slow. This test make sure that |select| events are NOT dispatched.
So it takes long time.
- Correct "right" to "backward" to avoid the unknown keyword is recognized as
the default keyword.
- Shorten setTimeout value.
* LayoutTests/fast/events/select-event-on-input-and-textarea.html
Removed because this is covered by the above test.
* LayoutTests/fast/events/select-event-on-input-recursive.html
Removed. This test doesn't make sense since this CL.
BUG= 696102
Review-Url: https://codereview.chromium.org/2735633006
Cr-Commit-Position: refs/heads/master@{#455380}
Committed: https://chromium.googlesource.com/chromium/src/+/158aa81d2e11bd3cce433df4801cbffc9922d86d
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+101 lines, -290 lines) |
Patch |
 |
M |
third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/select-event.html
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/textfieldselection/select-event-expected.txt
|
View
|
|
1 chunk |
+0 lines, -76 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/fast/events/select-event-on-input-and-textarea.html
|
View
|
|
1 chunk |
+0 lines, -99 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/fast/events/select-event-on-input-and-textarea-expected.txt
|
View
|
|
1 chunk |
+0 lines, -23 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/fast/events/select-event-on-input-recursive.html
|
View
|
|
1 chunk |
+0 lines, -32 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/LayoutTests/fast/events/select-event-on-input-recursive-expected.txt
|
View
|
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLInputElement.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLInputElement.cpp
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLTextAreaElement.h
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/HTMLTextAreaElement.cpp
|
View
|
|
3 chunks |
+13 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/TextControlElement.h
|
View
|
|
3 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/TextControlElement.cpp
|
View
|
1
|
4 chunks |
+20 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/BaseButtonInputType.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/BaseButtonInputType.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/FileInputType.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/FileInputType.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/HiddenInputType.h
|
View
|
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/HiddenInputType.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/InputType.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/InputType.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/NumberInputType.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/NumberInputType.cpp
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/TextFieldInputType.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
View
|
|
2 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
Total messages: 36 (24 generated)
|