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

Issue 2779813002: [InputEvent] Don't modify selection when transpose was canceled (Closed)

Created:
3 years, 9 months ago by chongz
Modified:
3 years, 8 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[InputEvent] Don't modify selection when transpose was canceled BUG=704791 Review-Url: https://codereview.chromium.org/2779813002 Cr-Commit-Position: refs/heads/master@{#462852} Committed: https://chromium.googlesource.com/chromium/src/+/376d3697e8ce4898adee03e02ec1200f6ad05aa7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Re-calculate range when selection changed #

Total comments: 20

Patch Set 3 : yosin's review: Use const& #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -31 lines) Patch
M third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-transpose.html View 1 4 chunks +34 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 2 3 chunks +47 lines, -26 lines 0 comments Download

Messages

Total messages: 36 (24 generated)
chongz
yosin@ PTAL, thanks!
3 years, 8 months ago (2017-03-27 21:57:50 UTC) #11
yosin_UTC9
lgtm w/ nit https://codereview.chromium.org/2779813002/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2779813002/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode1427 third_party/WebKit/Source/core/editing/Editor.cpp:1427: frame().selection().computeVisibleSelectionInDOMTreeDeprecated()) nit: Since L1423 update layout, ...
3 years, 8 months ago (2017-03-28 07:08:35 UTC) #14
chongz
Thinking more of this, I think we should re-calculate range&text after 'beforeinput' in case DOM ...
3 years, 8 months ago (2017-03-28 20:46:47 UTC) #19
chongz
yosin@ Can you take a look at this CL again? Thanks!
3 years, 8 months ago (2017-03-30 03:33:37 UTC) #20
chongz
On 2017/03/30 03:33:37, chongz wrote: > yosin@ Can you take a look at this CL ...
3 years, 8 months ago (2017-04-04 03:04:21 UTC) #21
chongz
tkent@ Can you take a look please? Thanks!
3 years, 8 months ago (2017-04-05 15:04:41 UTC) #23
tkent
On 2017/04/05 at 15:04:41, chongz wrote: > tkent@ Can you take a look please? Thanks! ...
3 years, 8 months ago (2017-04-05 22:48:07 UTC) #24
yosin_UTC9
https://codereview.chromium.org/2779813002/diff/40001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2779813002/diff/40001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode148 third_party/WebKit/Source/core/editing/Editor.cpp:148: EphemeralRange getTransposeRange(LocalFrame& frame) { s/getTransposeRange/computeRangeForTranspose/. Let's avoid using |get| ...
3 years, 8 months ago (2017-04-06 04:32:24 UTC) #25
chongz
yosin@ Please take a look again, thanks! https://codereview.chromium.org/2779813002/diff/40001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2779813002/diff/40001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode148 third_party/WebKit/Source/core/editing/Editor.cpp:148: EphemeralRange getTransposeRange(LocalFrame& ...
3 years, 8 months ago (2017-04-07 02:29:23 UTC) #30
yosin_UTC9
lgtm Thanks for make code cleaner! (^_^)b
3 years, 8 months ago (2017-04-07 04:49:43 UTC) #31
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/2779813002/60001
3 years, 8 months ago (2017-04-07 14:28:32 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 14:34:35 UTC) #36
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/376d3697e8ce4898adee03e02ec1...

Powered by Google App Engine
This is Rietveld 408576698