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

Issue 2890313003: Commands preserve handles (Closed)

Created:
3 years, 7 months ago by amaralp
Modified:
3 years, 6 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Editing Commands should preserve touch handles This CL makes it so editing commands will keep touch selections if they were present before the command. BUG=719890 Review-Url: https://codereview.chromium.org/2890313003 Cr-Commit-Position: refs/heads/master@{#475778} Committed: https://chromium.googlesource.com/chromium/src/+/dcc8b89e2e6e8e058f54c3169c796bc47b27e95b

Patch Set 1 #

Patch Set 2 : added test #

Total comments: 3

Patch Set 3 : Addressed yosin's comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -6 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 2 3 chunks +34 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionEditor.cpp View 1 2 2 chunks +2 lines, -0 lines 1 comment Download

Messages

Total messages: 23 (17 generated)
amaralp
PTAL
3 years, 7 months ago (2017-05-22 18:30:02 UTC) #11
yosin_UTC9
It seems Editor::{Applied,Unapplied,Reapplied}Editing() calls Editor::ChangeSelectionAfterCommand() to update FrameSelection after computing SelecitonInDOMtree by CorrectedSelectionAfterCommand(). To fix ...
3 years, 7 months ago (2017-05-23 01:46:37 UTC) #12
amaralp
On 2017/05/23 at 01:46:37, yosin wrote: > It seems Editor::{Applied,Unapplied,Reapplied}Editing() calls > Editor::ChangeSelectionAfterCommand() > to ...
3 years, 6 months ago (2017-05-31 02:12:06 UTC) #17
yosin_UTC9
lgtm https://codereview.chromium.org/2890313003/diff/40001/third_party/WebKit/Source/core/editing/SelectionEditor.cpp File third_party/WebKit/Source/core/editing/SelectionEditor.cpp (right): https://codereview.chromium.org/2890313003/diff/40001/third_party/WebKit/Source/core/editing/SelectionEditor.cpp#newcode197 third_party/WebKit/Source/core/editing/SelectionEditor.cpp:197: .SetIsHandleVisible(selection_.IsHandleVisible()) Good catch! (^_^)b
3 years, 6 months ago (2017-05-31 03:39:26 UTC) #19
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/2890313003/40001
3 years, 6 months ago (2017-05-31 03:39:39 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 03:45:23 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/dcc8b89e2e6e8e058f54c3169c79...

Powered by Google App Engine
This is Rietveld 408576698