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

Issue 2534783002: Apply RelocatablePosition in DeleteSelectionCommand::mergeParagraphs (Closed)

Created:
4 years ago by Xiaocheng
Modified:
4 years ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Apply RelocatablePosition in DeleteSelectionCommand::mergeParagraphs The above mentioned function used a VisiblePosition to track |startOfParagraphToMove|, which is wrong as VPs can't persist through DOM mutations. This patch uses RelocatablePosition instead. BUG=668765 TEST=webkit_unit_tests --gtest_filter=DeleteSelectionCommandTest.deleteListFromTable Committed: https://crrev.com/e0c438edea7a5d6b057edff9a65d3d735c98b10e Cr-Commit-Position: refs/heads/master@{#434976}

Patch Set 1 #

Patch Set 2 : Fix root cause #

Patch Set 3 : Fix regressions... #

Patch Set 4 : one more fix #

Total comments: 8

Patch Set 5 : fix nits #

Patch Set 6 : Tue Nov 29 21:12:11 JST 2016 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -6 lines) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
A third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Xiaocheng
PTAL.
4 years ago (2016-11-28 09:39:53 UTC) #7
yosin_UTC9
lgtm w/ nits +tkent@ for BUILD.gn change to add DeleteSelectionCommand.cpp https://codereview.chromium.org/2534783002/diff/60001/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp File third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp (right): https://codereview.chromium.org/2534783002/diff/60001/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp#newcode27 ...
4 years ago (2016-11-29 01:36:22 UTC) #11
tkent
lgtm https://codereview.chromium.org/2534783002/diff/60001/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp File third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp (right): https://codereview.chromium.org/2534783002/diff/60001/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp#newcode50 third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp:50: document(), kSmartDelete, kMergeBlocksAfterDelete, |kSmartDelete| is confusing. The code ...
4 years ago (2016-11-29 01:43:19 UTC) #12
Xiaocheng
Thanks for the review! https://codereview.chromium.org/2534783002/diff/60001/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp File third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp (right): https://codereview.chromium.org/2534783002/diff/60001/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp#newcode27 third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommandTest.cpp:27: "<div contenteditable=\"true\">" On 2016/11/29 at ...
4 years ago (2016-11-29 02:00:35 UTC) #14
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/2534783002/80001
4 years ago (2016-11-29 02:01:19 UTC) #16
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/core/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-29 03:55:03 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/2534783002/90001
4 years ago (2016-11-29 12:19:11 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:90001)
4 years ago (2016-11-29 13:51:00 UTC) #23
commit-bot: I haz the power
4 years ago (2016-11-29 13:54:42 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e0c438edea7a5d6b057edff9a65d3d735c98b10e
Cr-Commit-Position: refs/heads/master@{#434976}

Powered by Google App Engine
This is Rietveld 408576698