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

Issue 2830043002: [DMC #1.92] Move DMC::RemoveMarkersUnderWords() to DMListEditor (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

Move DMC::RemoveMarkersUnderWords() to DMListEditor Move the implementation of DocumentMarkerController:RemoveMarkersUnderWords() into a new method on DocumentMarkerListEditor. This is because we are going to refactor DocumentMarkerController on top of DocumentMarkerListEditor, and once we do that, without adding this method, the only way to implement this will be to have DMC copy all the markers out, remove some from its local copy of the list, clear the DocumentMarkerList, and re-add all the markers that were not removed, which we don't think is acceptable. Note: this method will eventually be moved from the general DocumentMarkerList to only being on SpellCheckMethodList, but we need this DocumentMarkerList until we add that. BUG=707867 Review-Url: https://codereview.chromium.org/2830043002 Cr-Commit-Position: refs/heads/master@{#466602} Committed: https://chromium.googlesource.com/chromium/src/+/ce8108b5ae75934aad08fee396d8a3e79a9682bb

Patch Set 1 #

Patch Set 2 : Moving directly to DocumentMarkerListEditor.cpp #

Patch Set 3 : REbase #

Patch Set 4 : Re-uploading because my repo is messed up and won't run trybots #

Patch Set 5 : Make the MarkerList* the first param for consistency #

Total comments: 2

Patch Set 6 : Don't pass Text node into DocumentMarkerListEditor #

Patch Set 7 : Use correct parent #

Patch Set 8 : Rebase #

Total comments: 3

Patch Set 9 : Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -14 lines) Patch
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (34 generated)
rlanday
3 years, 8 months ago (2017-04-21 04:15:19 UTC) #8
yosin_UTC9
Please write a description what this patch changes as main topic >xiaochengh requested that I ...
3 years, 8 months ago (2017-04-21 08:32:21 UTC) #16
rlanday
On 2017/04/21 at 08:32:21, yosin wrote: > Please write a description what this patch changes ...
3 years, 8 months ago (2017-04-21 08:38:46 UTC) #20
Xiaocheng
https://codereview.chromium.org/2830043002/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h (right): https://codereview.chromium.org/2830043002/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h#newcode32 third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h:32: const Text& node, Can we change this to a ...
3 years, 8 months ago (2017-04-21 08:41:45 UTC) #21
rlanday
https://codereview.chromium.org/2830043002/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h (right): https://codereview.chromium.org/2830043002/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h#newcode32 third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h:32: const Text& node, On 2017/04/21 at 08:41:45, Xiaocheng wrote: ...
3 years, 8 months ago (2017-04-21 08:42:22 UTC) #22
rlanday
On 2017/04/21 at 08:42:22, rlanday wrote: > https://codereview.chromium.org/2830043002/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h > File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h (right): > > https://codereview.chromium.org/2830043002/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h#newcode32 ...
3 years, 8 months ago (2017-04-21 09:10:55 UTC) #26
yosin_UTC9
Code changes seems to be good. Please update description. I think patch description generally should ...
3 years, 8 months ago (2017-04-24 04:00:44 UTC) #34
rlanday
https://codereview.chromium.org/2830043002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp (right): https://codereview.chromium.org/2830043002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp#newcode97 third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp:97: const DocumentMarker& marker = *list->at(j - 1); On 2017/04/24 ...
3 years, 8 months ago (2017-04-24 05:40:45 UTC) #36
rlanday
Updated
3 years, 8 months ago (2017-04-24 05:42:21 UTC) #39
yosin_UTC9
On 2017/04/24 at 05:40:45, rlanday wrote: > https://codereview.chromium.org/2830043002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp > File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp (right): > > https://codereview.chromium.org/2830043002/diff/140001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp#newcode97 ...
3 years, 8 months ago (2017-04-24 05:58:35 UTC) #40
yosin_UTC9
lgtm
3 years, 8 months ago (2017-04-24 05:58:51 UTC) #41
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/2830043002/160001
3 years, 8 months ago (2017-04-24 06:02:15 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 09:08:06 UTC) #47
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/ce8108b5ae75934aad08fee396d8...

Powered by Google App Engine
This is Rietveld 408576698