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

Issue 2810463002: Clean up DocumentMarkerController::copyMarkers() (now it's moveMarkers()) (Closed)

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

Description

Clean up DocumentMarkerController::copyMarkers() (now it's moveMarkers()) This method is kind of weird since it leaves the markers in the source list but sometimes changes one of them (if it spans a node boundary). In this CL, I'm cleaning it up so it removes the markers from the source list after adding them to the destination list. BUG=707867 Review-Url: https://codereview.chromium.org/2810463002 Cr-Commit-Position: refs/heads/master@{#463509} Committed: https://chromium.googlesource.com/chromium/src/+/0dea0097ea24907ed4c0f30fb4180191f378f00e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase on Blink renaming, remove delta #

Patch Set 3 : Remove start_offset, remove debugging code #

Total comments: 3

Patch Set 4 : Respond to comments #

Patch Set 5 : Actually do erase, fix reapply (messed up when rebasing) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -30 lines) Patch
M third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 4 3 chunks +12 lines, -21 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (20 generated)
rlanday
3 years, 8 months ago (2017-04-08 02:28:49 UTC) #4
rlanday
https://codereview.chromium.org/2810463002/diff/1/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp File third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp (right): https://codereview.chromium.org/2810463002/diff/1/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp#newcode91 third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp:91: document().markers().moveMarkers(m_text2.get(), 0, m_offset, m_text1.get(), I'm glad I wrote the ...
3 years, 8 months ago (2017-04-08 02:30:10 UTC) #5
Xiaocheng
https://codereview.chromium.org/2810463002/diff/1/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp File third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp (right): https://codereview.chromium.org/2810463002/diff/1/third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp#newcode91 third_party/WebKit/Source/core/editing/commands/SplitTextNodeCommand.cpp:91: document().markers().moveMarkers(m_text2.get(), 0, m_offset, m_text1.get(), On 2017/04/08 at 02:30:09, rlanday ...
3 years, 8 months ago (2017-04-08 02:46:40 UTC) #6
rlanday
On 2017/04/08 at 02:46:40, xiaochengh wrote: > https://codereview.chromium.org/2810463002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h#newcode80 > third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h:80: int delta); > Let's also ...
3 years, 8 months ago (2017-04-10 21:38:46 UTC) #10
Xiaocheng
On 2017/04/10 at 21:38:46, rlanday wrote: > On 2017/04/08 at 02:46:40, xiaochengh wrote: > > ...
3 years, 8 months ago (2017-04-10 21:47:41 UTC) #12
rlanday
On 2017/04/10 at 21:47:41, xiaochengh wrote: > On 2017/04/10 at 21:38:46, rlanday wrote: > > ...
3 years, 8 months ago (2017-04-10 22:22:08 UTC) #17
Xiaocheng
https://codereview.chromium.org/2810463002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2810463002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode290 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:290: // before start_offset + length. Markers that run past ...
3 years, 8 months ago (2017-04-10 22:38:00 UTC) #18
rlanday
https://codereview.chromium.org/2810463002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2810463002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode311 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:311: MarkerList::iterator start_pos = On 2017/04/10 at 22:38:00, Xiaocheng wrote: ...
3 years, 8 months ago (2017-04-10 22:46:11 UTC) #19
rlanday
On 2017/04/10 at 22:46:11, rlanday wrote: > https://codereview.chromium.org/2810463002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp > File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): > > https://codereview.chromium.org/2810463002/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode311 ...
3 years, 8 months ago (2017-04-10 22:54:48 UTC) #21
rlanday
Ok, updated again (some stuff got messed up when rebasing everything on top of the ...
3 years, 8 months ago (2017-04-10 23:17:09 UTC) #25
Xiaocheng
lgtm
3 years, 8 months ago (2017-04-10 23:30:28 UTC) #26
yosin_UTC9
lgtm
3 years, 8 months ago (2017-04-11 00:57:36 UTC) #27
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/2810463002/80001
3 years, 8 months ago (2017-04-11 02:34:37 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 03:00:51 UTC) #34
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0dea0097ea24907ed4c0f30fb418...

Powered by Google App Engine
This is Rietveld 408576698