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

Issue 2616623002: Do not send redundant selectionchange-events (decouple focus) (Closed)

Created:
3 years, 11 months ago by hugoh_UTC2
Modified:
3 years, 8 months ago
CC:
blink-reviews, chromium-reviews, yabinh
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not send redundant selectionchange-events (decouple focus) This CL aims to remove redundant selectionchange-events that were sent upon change of focus caused by element.focus(), tab-navigation, spatnav and mouse-clicks. Goals: 1. Send == one selectionchange-event, not two, for each caret jump. 2. Send <= one selectionchange-event, not two, for each focus jump. Background: When you click/tab to an <input> text-field, a ViewHostMsg_TextInputStateChanged-message is sent to browser-side. Problem: With current logic, RenderFrameImpl::didChangeSelection is called twice so two ViewHostMsg_TextInputStateChanged-messages are sent to browser-side: (1) when focus leaves an <input>-field (unnecessary!). (2) when focus enters another <input>-field. Worse, also the web page gets two selectionchange events. The first one is immediately invalid so the webpage should not react to it. (1) happens because FocusController::setFocusedElement() always clears the selection when a new element gets focus. Solution: Do not clear selection when focus moves. To keep current visual behavior when focus moves away from a text-field we need to hide that field's selection (clicking outside a text-field hides its selection). Test updates: 1. Check for one selectionchange event, not two. 2. LayoutTests' trees now expect the "hidden" selection. 3. A new test in WebFrameTest.cpp tests tab-key navigation. BUG=678601, 679635, 699015, 692898 TEST=In content_shell, select some text in an <input>-field, click another <input>-field (move focus). Notice: one selectionchange event is fired (as in Firefox). TEST=In content_shell, select some text in an <input>-field, click on an <img>. Notice: selection gets hid and zero selectionchange events are fired (as in Firefox). Review-Url: https://codereview.chromium.org/2616623002 Cr-Commit-Position: refs/heads/master@{#464698} Committed: https://chromium.googlesource.com/chromium/src/+/0f65d25a4097959d977dbb1077717323438240a6

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added unit test and check for contenteditable #

Patch Set 3 : Remove clearSelectionIfNeeded() and calls to it #

Patch Set 4 : Rebase #

Patch Set 5 : Adjust Android-tests #

Total comments: 1

Patch Set 6 : Adjust some LayoutTests #

Total comments: 1

Patch Set 7 : Fixed ImeTest.java according to aelias' suggestion #

Patch Set 8 : Fix spatnav tests (clear selection when focus goes to non editable element). Remove now invalid keeā€¦ #

Total comments: 4

Patch Set 9 : Restore tab-key (and spatial) navigation's clearing behavior #

Total comments: 8

Patch Set 10 : Patch Set 2 #

Patch Set 11 : Refix Android tests and LayoutTests #

Patch Set 12 : A more natural WebFrame test #

Patch Set 13 : To pass tests, keep selection.clear when clicking <body> #

Patch Set 14 : Rebase #

Patch Set 15 : For dry run on bots #

Patch Set 16 : Rebase #

Patch Set 17 : Fix tests #

Patch Set 18 : Try fix win_chromium_rel_ng's focus-selection-textarea.html #

Patch Set 19 : Add buglink in comment about click on <body> #

Patch Set 20 : Hide unfocused selection #

Patch Set 21 : Update two layout tests and remove 5240265.html #

Patch Set 22 : Fix LayoutTests that create selections within SVG documents #

Total comments: 1

Patch Set 23 : Move isSelectionInDocument() and selectionHasFocus() to EditingUtilities #

Total comments: 12

Patch Set 24 : Skip isSelectionInDocument(). Use SelectionInFlatTree. Don't change EditorCommand. #

Total comments: 4

Patch Set 25 : Get Document from selection #

Total comments: 4

Patch Set 26 : Early return false x 2 #

Total comments: 2

Patch Set 27 : Fixed nit. #

Patch Set 28 : Rebase and refix nit (compilation error slipped) #

Patch Set 29 : Reland (fix Win LayoutTests) #

Patch Set 30 : Unchanged paint-logic #

Patch Set 31 : Experiment: Hide selection when focus leaves <input> #

Patch Set 32 : Experiment: Hide selection when focus leaves <input> V2 #

Patch Set 33 : Rebase #

Patch Set 34 : Add comment #

Total comments: 11

Patch Set 35 : Added yosin's suggestions #

Patch Set 36 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -69 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 5 chunks +5 lines, -5 lines 0 comments Download
M content/test/data/android/input/input_forms.html View 1 2 3 4 5 6 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/input/keyboard_event_without_focus.html View 1 2 3 4 5 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/focus-and-display-none-and-redisplay.html View 1 2 3 4 5 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/selection/focus-and-display-none-and-redisplay-expected.txt View 1 2 3 4 5 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/touch/gesture/focus-selectionchange-on-tap-expected.txt View 1 2 3 4 5 10 11 12 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/focus-selection-input-expected.txt View 1 2 3 4 5 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/focus-selection-textarea-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/android/fast/forms/textarea/textarea-scrolled-mask-expected.txt View 1 2 3 4 5 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/forms/textarea/textarea-scrolled-mask-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/textarea/textarea-scrolled-mask-expected.txt View 1 2 3 4 5 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/textarea/textarea-scrolled-mask-expected.txt View 1 2 3 4 5 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/textarea/textarea-scrolled-mask-expected.txt View 1 2 3 4 5 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/forms/textarea/textarea-scrolled-mask-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 4 chunks +27 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/LayoutSelection.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/LayoutSelection.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 4 chunks +11 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3 chunks +5 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 3 chunks +57 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/tests/data/editable_elements.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 278 (173 generated)
hugoh_UTC2
@bokan Could you PTAL at this change?
3 years, 11 months ago (2017-01-04 09:14:11 UTC) #2
bokan
I'm not super familiar with focus/editing so +yosin@ to look over this change and I'll ...
3 years, 11 months ago (2017-01-04 13:05:14 UTC) #7
yosin_UTC9
As bokan said, please file bug and add test for verifying this change to avoid ...
3 years, 11 months ago (2017-01-05 05:35:33 UTC) #9
hugoh_UTC2
I've created crbug.com/678601 . I'm not sure how/where to test this automatically.
3 years, 11 months ago (2017-01-05 14:47:33 UTC) #11
bokan
On 2017/01/05 14:47:33, hugoh wrote: > I've created crbug.com/678601 . I'm not sure how/where to ...
3 years, 11 months ago (2017-01-05 14:49:21 UTC) #12
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/1/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2616623002/diff/1/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1079 third_party/WebKit/Source/core/page/FocusController.cpp:1079: if (newFocusedElement && newFocusedElement->isTextControl()) On 2017/01/05 05:35:33, Yosi_UTC9 wrote: ...
3 years, 11 months ago (2017-01-06 17:31:44 UTC) #13
yosin_UTC9
On 2017/01/06 at 17:31:44, hugoh wrote: > https://codereview.chromium.org/2616623002/diff/1/third_party/WebKit/Source/core/page/FocusController.cpp > File third_party/WebKit/Source/core/page/FocusController.cpp (right): > > https://codereview.chromium.org/2616623002/diff/1/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1079 ...
3 years, 11 months ago (2017-01-10 07:30:47 UTC) #14
hugoh_UTC2
On 2017/01/10 07:30:47, Yosi_UTC9 wrote: > On 2017/01/06 at 17:31:44, hugoh wrote: > > > ...
3 years, 11 months ago (2017-01-12 02:35:45 UTC) #15
yosin_UTC9
On 2017/01/12 at 02:35:45, hugoh wrote: > On 2017/01/10 07:30:47, Yosi_UTC9 wrote: > > On ...
3 years, 11 months ago (2017-01-12 04:07:30 UTC) #16
hugoh_UTC2
On 2017/01/12 04:07:30, Yosi_UTC9 wrote: > On 2017/01/12 at 02:35:45, hugoh wrote: > > On ...
3 years, 11 months ago (2017-01-12 05:46:07 UTC) #17
bokan
rs lgtm
3 years, 11 months ago (2017-01-12 14:07:15 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616623002/40001
3 years, 11 months ago (2017-01-16 01:13:28 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/100776)
3 years, 11 months ago (2017-01-16 02:20:52 UTC) #22
hugoh_UTC2
On 2017/01/12 05:46:07, hugoh wrote: > On 2017/01/12 04:07:30, Yosi_UTC9 wrote: > > On 2017/01/12 ...
3 years, 11 months ago (2017-01-17 01:43:52 UTC) #23
yosin_UTC9
On 2017/01/17 at 01:43:52, hugoh wrote: > On 2017/01/12 05:46:07, hugoh wrote: > > On ...
3 years, 11 months ago (2017-01-17 02:05:39 UTC) #24
hugoh_UTC2
On 2017/01/17 02:05:39, Yosi_UTC9 wrote: > On 2017/01/17 at 01:43:52, hugoh wrote: > > On ...
3 years, 11 months ago (2017-01-17 07:36:10 UTC) #29
yosin_UTC9
On 2017/01/17 at 07:36:10, hugoh wrote: > On 2017/01/17 02:05:39, Yosi_UTC9 wrote: > > On ...
3 years, 11 months ago (2017-01-18 04:20:06 UTC) #30
hugoh_UTC2
On 2017/01/18 04:20:06, Yosi_UTC9 wrote: > On 2017/01/17 at 07:36:10, hugoh wrote: > > On ...
3 years, 11 months ago (2017-01-18 06:55:53 UTC) #35
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/80001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (right): https://codereview.chromium.org/2616623002/diff/80001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode670 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:670: assertWaitForSelectActionBarStatus(true); I flipped this boolean just to make the ...
3 years, 11 months ago (2017-01-18 09:20:03 UTC) #36
yosin_UTC9
On 2017/01/18 at 09:20:03, hugoh wrote: > https://codereview.chromium.org/2616623002/diff/80001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java > File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (right): > > https://codereview.chromium.org/2616623002/diff/80001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode670 ...
3 years, 11 months ago (2017-01-19 09:32:31 UTC) #37
yosin_UTC9
3 years, 11 months ago (2017-01-19 09:33:15 UTC) #38
Changwan Ryu
On 2017/01/18 09:20:03, hugoh wrote: > https://codereview.chromium.org/2616623002/diff/80001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java > File > content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java > (right): > > ...
3 years, 11 months ago (2017-01-19 11:10:08 UTC) #39
hugoh_UTC2
On 2017/01/19 11:10:08, Changwan Ryu wrote: > On 2017/01/18 09:20:03, hugoh wrote: > > > ...
3 years, 11 months ago (2017-01-20 08:49:09 UTC) #40
yosin_UTC9
On 2017/01/20 at 08:49:09, hugoh wrote: > On 2017/01/19 11:10:08, Changwan Ryu wrote: > > ...
3 years, 11 months ago (2017-01-20 09:00:24 UTC) #41
aelias_OOO_until_Jul13
https://codereview.chromium.org/2616623002/diff/100001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (right): https://codereview.chromium.org/2616623002/diff/100001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode668 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:668: DOMUtils.clickNode(this, mContentViewCore, "input_radio"); I can't repro any obvious change ...
3 years, 11 months ago (2017-01-24 00:51:41 UTC) #43
Changwan Ryu
On 2017/01/24 00:51:41, aelias wrote: > https://codereview.chromium.org/2616623002/diff/100001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java > File > content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java > (right): > > ...
3 years, 11 months ago (2017-01-24 03:47:16 UTC) #44
aelias_OOO_until_Jul13
> input_radio is not an important scenario, but it may still help to have a ...
3 years, 11 months ago (2017-01-24 04:35:17 UTC) #45
hugoh_UTC2
aelias@, I updated the Android test according to your suggestion. yosin@, to fix the spatnav ...
3 years, 10 months ago (2017-02-09 09:44:26 UTC) #56
yosin_UTC9
On 2017/02/09 at 09:44:26, hugoh wrote: > yosin@, to fix the spatnav tests I "clear ...
3 years, 10 months ago (2017-02-09 13:01:48 UTC) #57
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/140001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2616623002/diff/140001/third_party/WebKit/Source/core/dom/Element.cpp#newcode2685 third_party/WebKit/Source/core/dom/Element.cpp:2685: LocalFrame* frame = document().frame(); We can early return here ...
3 years, 10 months ago (2017-02-09 13:02:17 UTC) #58
yosin_UTC9
On 2017/02/09 at 13:02:17, yosin_UTC9 wrote: > https://codereview.chromium.org/2616623002/diff/140001/third_party/WebKit/Source/core/dom/Element.cpp > File third_party/WebKit/Source/core/dom/Element.cpp (right): > > https://codereview.chromium.org/2616623002/diff/140001/third_party/WebKit/Source/core/dom/Element.cpp#newcode2685 ...
3 years, 10 months ago (2017-02-09 13:16:57 UTC) #59
yosin_UTC9
On 2017/02/09 at 13:16:57, yosin_UTC9 wrote: > On 2017/02/09 at 13:02:17, yosin_UTC9 wrote: > > ...
3 years, 10 months ago (2017-02-09 15:14:27 UTC) #60
aelias_OOO_until_Jul13
On 2017/02/09 at 09:44:26, hugoh wrote: > amaralp@, FYI, your newly added EventHandlerTest.ClearHandleAfterTap test fails... ...
3 years, 10 months ago (2017-02-09 23:43:55 UTC) #61
hugoh_UTC2
On 2017/02/09 15:14:27, yosin_UTC9 wrote: > So, I think it is OK to adjust test ...
3 years, 10 months ago (2017-02-10 05:46:07 UTC) #62
hugoh_UTC2
On 2017/02/10 05:46:07, hugoh wrote: > On 2017/02/09 15:14:27, yosin_UTC9 wrote: > > So, I ...
3 years, 10 months ago (2017-02-10 09:38:06 UTC) #63
yosin_UTC9
On 2017/02/10 at 09:38:06, hugoh wrote: > On 2017/02/10 05:46:07, hugoh wrote: > > On ...
3 years, 10 months ago (2017-02-10 11:49:45 UTC) #64
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/140001/third_party/WebKit/Source/core/dom/Element.cpp File third_party/WebKit/Source/core/dom/Element.cpp (right): https://codereview.chromium.org/2616623002/diff/140001/third_party/WebKit/Source/core/dom/Element.cpp#newcode2713 third_party/WebKit/Source/core/dom/Element.cpp:2713: frame->selection().clear(); On 2017/02/09 13:02:17, yosin_UTC9 wrote: > Focus and ...
3 years, 10 months ago (2017-02-11 03:42:22 UTC) #65
hugoh_UTC2
On 2017/02/09 23:43:55, aelias wrote: > On 2017/02/09 at 09:44:26, hugoh wrote: > > amaralp@, ...
3 years, 10 months ago (2017-02-13 07:35:54 UTC) #68
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/160001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java File content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java (right): https://codereview.chromium.org/2616623002/diff/160001/content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java#newcode1258 content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java:1258: waitForEventLogs("selectionchange"); (^_^)b https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1048 third_party/WebKit/Source/core/page/FocusController.cpp:1048: FrameSelection& ...
3 years, 10 months ago (2017-02-13 08:09:00 UTC) #69
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1048 third_party/WebKit/Source/core/page/FocusController.cpp:1048: FrameSelection& selection = focusedFrame()->selection(); On 2017/02/13 08:09:00, yosin_UTC9 wrote: ...
3 years, 10 months ago (2017-02-13 09:18:52 UTC) #72
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1048 third_party/WebKit/Source/core/page/FocusController.cpp:1048: FrameSelection& selection = focusedFrame()->selection(); On 2017/02/13 09:18:52, hugoh wrote: ...
3 years, 10 months ago (2017-02-13 09:55:52 UTC) #73
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1048 third_party/WebKit/Source/core/page/FocusController.cpp:1048: FrameSelection& selection = focusedFrame()->selection(); On 2017/02/13 at 09:18:52, hugoh ...
3 years, 10 months ago (2017-02-13 10:18:55 UTC) #74
hugoh_UTC2
On 2017/02/13 10:18:55, yosin_UTC9 wrote: > https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp > File third_party/WebKit/Source/core/page/FocusController.cpp (right): > > https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1048 > ...
3 years, 10 months ago (2017-02-14 10:18:44 UTC) #75
hugoh_UTC2
Inline answer. https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp File third_party/WebKit/Source/core/page/FocusController.cpp (right): https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp#newcode1048 third_party/WebKit/Source/core/page/FocusController.cpp:1048: FrameSelection& selection = focusedFrame()->selection(); On 2017/02/13 10:18:55, ...
3 years, 10 months ago (2017-02-14 10:32:50 UTC) #76
yosin_UTC9
On 2017/02/14 at 10:32:50, hugoh wrote: > Inline answer. > > https://codereview.chromium.org/2616623002/diff/160001/third_party/WebKit/Source/core/page/FocusController.cpp > File third_party/WebKit/Source/core/page/FocusController.cpp ...
3 years, 10 months ago (2017-02-14 12:27:10 UTC) #77
hugoh_UTC2
On 2017/02/14 12:27:10, yosin_UTC9 wrote: > > This is the code I tried (without selection.clear() ...
3 years, 10 months ago (2017-02-14 13:56:03 UTC) #78
yosin_UTC9
On 2017/02/14 at 13:56:03, hugoh wrote: > On 2017/02/14 12:27:10, yosin_UTC9 wrote: > > > ...
3 years, 10 months ago (2017-02-14 14:19:22 UTC) #79
hugoh_UTC2
> Agree. Un-painting unfocused selection should be handled in another patch. Unfortunately, I don't think ...
3 years, 10 months ago (2017-02-15 01:19:24 UTC) #80
yosin_UTC9
On 2017/02/15 at 01:19:24, hugoh wrote: > > Agree. Un-painting unfocused selection should be handled ...
3 years, 10 months ago (2017-02-15 01:41:22 UTC) #81
hugoh_UTC2
On 2017/02/15 01:41:22, yosin_UTC9 wrote: > Anyway, let's postpone to fix TAB/SNAV issue, unpaint no ...
3 years, 10 months ago (2017-02-15 02:01:40 UTC) #82
yosin_UTC9
On 2017/02/15 at 02:01:40, hugoh wrote: > On 2017/02/15 01:41:22, yosin_UTC9 wrote: > > Anyway, ...
3 years, 10 months ago (2017-02-15 02:30:37 UTC) #83
hugoh_UTC2
@yosin, I updated the unit test. PTAL. Now it will not break when later CLs ...
3 years, 10 months ago (2017-02-15 06:36:33 UTC) #91
yosin_UTC9
On 2017/02/15 at 06:36:33, hugoh wrote: > @yosin, I updated the unit test. PTAL. Now ...
3 years, 10 months ago (2017-02-15 07:16:24 UTC) #92
hugoh_UTC2
On 2017/02/15 07:16:24, yosin_UTC9 wrote: > On 2017/02/15 at 06:36:33, hugoh wrote: > > @yosin, ...
3 years, 10 months ago (2017-02-15 07:52:46 UTC) #93
yosin_UTC9
On 2017/02/15 at 07:52:46, hugoh wrote: > On 2017/02/15 07:16:24, yosin_UTC9 wrote: > > On ...
3 years, 10 months ago (2017-02-15 08:23:36 UTC) #94
hugoh_UTC2
On 2017/02/15 07:52:46, hugoh wrote: > On 2017/02/15 07:16:24, yosin_UTC9 wrote: > > On 2017/02/15 ...
3 years, 10 months ago (2017-02-15 08:24:30 UTC) #96
yosin_UTC9
On 2017/02/15 at 08:24:30, hugoh wrote: > On 2017/02/15 07:52:46, hugoh wrote: > > On ...
3 years, 10 months ago (2017-02-15 12:02:04 UTC) #97
hugoh_UTC2
Conclusions from offline talk with @yosin: * We need hiding ("unpainting") now. Otherwise element.focus() from ...
3 years, 9 months ago (2017-03-10 10:10:37 UTC) #159
aelias_OOO_until_Jul13
On 2017/03/10 at 10:10:37, hugoh wrote: > Conclusions from offline talk with @yosin: > * ...
3 years, 9 months ago (2017-03-10 20:07:57 UTC) #160
hugoh_UTC2
On 2017/03/10 20:07:57, aelias wrote: > On 2017/03/10 at 10:10:37, hugoh wrote: > > Conclusions ...
3 years, 9 months ago (2017-03-12 09:41:55 UTC) #161
hugoh_UTC2
On 2017/03/12 09:41:55, hugoh wrote: > On 2017/03/10 20:07:57, aelias wrote: > > On 2017/03/10 ...
3 years, 9 months ago (2017-03-13 05:08:55 UTC) #164
amaralp
On 2017/03/13 at 05:08:55, hugoh wrote: > On 2017/03/12 09:41:55, hugoh wrote: > > On ...
3 years, 9 months ago (2017-03-14 02:43:24 UTC) #171
hugoh_UTC2
On 2017/03/14 02:43:24, amaralp wrote: > On 2017/03/13 at 05:08:55, hugoh wrote: > > On ...
3 years, 9 months ago (2017-03-14 03:05:49 UTC) #172
hugoh_UTC2
On 2017/03/14 03:05:49, hugoh wrote: > On 2017/03/14 02:43:24, amaralp wrote: > > On 2017/03/13 ...
3 years, 9 months ago (2017-03-14 13:17:21 UTC) #174
amaralp
On 2017/03/14 at 13:17:21, hugoh wrote: > On 2017/03/14 03:05:49, hugoh wrote: > > On ...
3 years, 9 months ago (2017-03-14 15:39:49 UTC) #175
hugoh_UTC2
On 2017/03/14 15:39:49, amaralp wrote: > On 2017/03/14 at 13:17:21, hugoh wrote: > > On ...
3 years, 9 months ago (2017-03-15 01:03:58 UTC) #176
hugoh_UTC2
On 2017/03/15 01:03:58, hugoh_UTC9 wrote: > On 2017/03/14 15:39:49, amaralp wrote: > > On 2017/03/14 ...
3 years, 9 months ago (2017-03-17 02:38:55 UTC) #179
yosin_UTC9
On 2017/03/17 at 02:38:55, hugoh wrote: > On 2017/03/15 01:03:58, hugoh_UTC9 wrote: > > On ...
3 years, 9 months ago (2017-03-17 10:11:34 UTC) #183
hugoh_UTC2
Thanks yosin@, could you please reconfirm your approval? (PS23 has many changes since your last ...
3 years, 9 months ago (2017-03-18 03:59:05 UTC) #184
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/440001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/440001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode394 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:394: if (!isSelectionInDocument(selection, *frame.document())) We can assume SelectionInFlatTree in FrameSeleciton ...
3 years, 9 months ago (2017-03-21 06:49:59 UTC) #185
yosin_UTC9
3 years, 9 months ago (2017-03-22 02:17:05 UTC) #186
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/440001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/440001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode394 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:394: if (!isSelectionInDocument(selection, *frame.document())) On 2017/03/21 06:49:59, yosin_UTC9 wrote: > ...
3 years, 9 months ago (2017-03-22 02:54:47 UTC) #189
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode377 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:377: bool selectionHasFocus(const LocalFrame& frame, Let's take Document from selection ...
3 years, 9 months ago (2017-03-22 05:08:00 UTC) #192
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode377 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:377: bool selectionHasFocus(const LocalFrame& frame, On 2017/03/22 05:07:59, yosin_UTC9 wrote: ...
3 years, 9 months ago (2017-03-22 07:50:33 UTC) #193
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode377 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:377: bool selectionHasFocus(const LocalFrame& frame, On 2017/03/22 at 07:50:33, hugoh_UTC9 ...
3 years, 9 months ago (2017-03-22 07:53:19 UTC) #194
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/460001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode377 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:377: bool selectionHasFocus(const LocalFrame& frame, On 2017/03/22 07:53:19, yosin_UTC9 wrote: ...
3 years, 9 months ago (2017-03-22 08:32:38 UTC) #195
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode378 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:378: const Document* document = selection.base().document(); Let's handle document == ...
3 years, 9 months ago (2017-03-22 09:11:35 UTC) #198
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode378 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:378: const Document* document = selection.base().document(); On 2017/03/22 09:11:35, yosin_UTC9 ...
3 years, 9 months ago (2017-03-22 09:19:14 UTC) #199
yosin_UTC9
https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode378 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:378: const Document* document = selection.base().document(); On 2017/03/22 at 09:19:14, ...
3 years, 9 months ago (2017-03-22 09:26:35 UTC) #200
hugoh_UTC2
https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/480001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode378 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:378: const Document* document = selection.base().document(); On 2017/03/22 09:26:35, yosin_UTC9 ...
3 years, 9 months ago (2017-03-22 09:41:11 UTC) #201
yosin_UTC9
lgtm w/ small nits https://codereview.chromium.org/2616623002/diff/500001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp (right): https://codereview.chromium.org/2616623002/diff/500001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp#newcode382 third_party/WebKit/Source/core/editing/EditingUtilities.cpp:382: if (!document) nit: Since selection.isNone() ...
3 years, 9 months ago (2017-03-23 01:26:20 UTC) #202
hugoh_UTC2
Thanks! Nit fixed. Do we need to reconfirm approval from @bokan ? https://codereview.chromium.org/2616623002/diff/500001/third_party/WebKit/Source/core/editing/EditingUtilities.cpp File third_party/WebKit/Source/core/editing/EditingUtilities.cpp ...
3 years, 9 months ago (2017-03-23 01:38:06 UTC) #203
yosin_UTC9
On 2017/03/23 at 01:38:06, hugoh wrote: > Thanks! Nit fixed. Do we need to reconfirm ...
3 years, 9 months ago (2017-03-23 03:46:23 UTC) #204
hugoh_UTC2
On 2017/03/23 03:46:23, yosin_UTC9 wrote: > On 2017/03/23 at 01:38:06, hugoh wrote: > > Thanks! ...
3 years, 9 months ago (2017-03-23 06:12:27 UTC) #205
bokan
rs lgtm
3 years, 8 months ago (2017-03-27 11:41:51 UTC) #210
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616623002/540001
3 years, 8 months ago (2017-03-27 11:47:04 UTC) #213
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/395199)
3 years, 8 months ago (2017-03-27 11:54:58 UTC) #215
hugoh_UTC2
aelias@, I need your approval on ImeTest.java ;) PTAL.
3 years, 8 months ago (2017-03-27 12:03:01 UTC) #216
aelias_OOO_until_Jul13
Android test lgtm
3 years, 8 months ago (2017-03-27 21:54:49 UTC) #217
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616623002/540001
3 years, 8 months ago (2017-03-28 01:59:35 UTC) #219
commit-bot: I haz the power
Committed patchset #28 (id:540001) as https://chromium.googlesource.com/chromium/src/+/31d55d991baf03aa9bc3ff5d5e67f709eee77959
3 years, 8 months ago (2017-03-28 02:10:03 UTC) #222
imcheng
A revert of this CL (patchset #28 id:540001) has been created in https://codereview.chromium.org/2784653002/ by imcheng@chromium.org. ...
3 years, 8 months ago (2017-03-28 20:26:49 UTC) #223
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616623002/560001
3 years, 8 months ago (2017-03-29 02:42:02 UTC) #229
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 8 months ago (2017-03-29 04:43:34 UTC) #231
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616623002/560001
3 years, 8 months ago (2017-03-29 05:23:48 UTC) #233
commit-bot: I haz the power
Committed patchset #29 (id:560001) as https://chromium.googlesource.com/chromium/src/+/92bf3c29fccac551acceff254e53d7ea73367158
3 years, 8 months ago (2017-03-29 07:20:14 UTC) #236
aelias_OOO_until_Jul13
A revert of this CL (patchset #29 id:560001) has been created in https://codereview.chromium.org/2791753002/ by aelias@chromium.org. ...
3 years, 8 months ago (2017-03-31 21:24:10 UTC) #237
hugoh_UTC2
Turns out we can't just hide the selection when it doesn't "have focus"; we unintentionally ...
3 years, 8 months ago (2017-04-13 06:37:31 UTC) #259
yosin_UTC9
Approach is good since this is simpler implementation of ClearSelectionIfNeeded(). https://codereview.chromium.org/2616623002/diff/660001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2616623002/diff/660001/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode339 ...
3 years, 8 months ago (2017-04-13 09:31:50 UTC) #264
hugoh_UTC2
yosin@ PTAL https://codereview.chromium.org/2616623002/diff/660001/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (right): https://codereview.chromium.org/2616623002/diff/660001/third_party/WebKit/Source/core/editing/FrameSelection.cpp#newcode339 third_party/WebKit/Source/core/editing/FrameSelection.cpp:339: const Element* focus = GetDocument().FocusedElement(); On 2017/04/13 ...
3 years, 8 months ago (2017-04-14 01:34:47 UTC) #265
yosin_UTC9
lgtm Please remember Blink prefers early-return style. ;-) https://codereview.chromium.org/2616623002/diff/660001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp File third_party/WebKit/Source/core/editing/LayoutSelection.cpp (right): https://codereview.chromium.org/2616623002/diff/660001/third_party/WebKit/Source/core/editing/LayoutSelection.cpp#newcode117 third_party/WebKit/Source/core/editing/LayoutSelection.cpp:117: if ...
3 years, 8 months ago (2017-04-14 02:29:16 UTC) #266
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616623002/680001
3 years, 8 months ago (2017-04-14 03:02:13 UTC) #270
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/319424) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 8 months ago (2017-04-14 03:05:43 UTC) #272
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2616623002/700001
3 years, 8 months ago (2017-04-14 05:17:17 UTC) #275
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 07:12:03 UTC) #278
Message was sent while issue was closed.
Committed patchset #36 (id:700001) as
https://chromium.googlesource.com/chromium/src/+/0f65d25a4097959d977dbb107771...

Powered by Google App Engine
This is Rietveld 408576698