DescriptionDon't clear selection on focus change except for text form control element
Before this patch, Blink clears selection when focus is changed. This patch
changes to clear selection for text field only. Thus, we keep selection for
content editable.
This patch also updates below tests to follow new behavior introduced by this
patch.
- fast/dom/blur-contenteditable.html
Render tree dump has a caret.
- fast/layers/scroll-rect-to-visible.html
Render tree dump has a caret.
- fast/events/selectionchange-user-initiated.html
One "selectionchange" event from clear selection for content editable has
been gone.
- /fast/events/selectstart-prevent-selectall.html
same as above.
- fast/forms/focus-selection-input.html
One "selectionchange" event from clear selection for caret on LABEL element
by test step 5 been gone.
- fast/forms/focus-selection-textarea.html
same as above
BUG=351981
TEST=LayoutTests/editing/selection/keep-selection-after-set-focus.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180228
Patch Set 1 : 2014-07-29T16:38:05 #
Total comments: 5
Patch Set 2 : 2014-07-30T09:45:59 #
Total comments: 2
Patch Set 3 : 2014-08-01T13:31:54 #Patch Set 4 : 2014-08-12T17:34:43 Clear selection in text form control blur handler #Patch Set 5 : 2014-08-12T18:44:20 #Patch Set 6 : 2014-08-13T13:21:11 #Messages
Total messages: 16 (0 generated)
|