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

Issue 2833753004: [DMC #1.915] Refactor DocumentMarkerController::RemoveMarkers(const MarkerRemoverPredicate&) (Closed)

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

Description

Refactor DocumentMarkerController::RemoveMarkers(const MarkerRemoverPredicate&) MarkerRemoverPredicate seems to have been added with some amount of generality in mind, but the way it's written it only serves a single purpose, so I'm refactoring the RemoveMarkers() method that takes it to just take a vector of words instead. BUG=707867 Review-Url: https://codereview.chromium.org/2833753004 Cr-Commit-Position: refs/heads/master@{#466516} Committed: https://chromium.googlesource.com/chromium/src/+/ad6b1f378b7706541d97b227638ba93c446fc8f1

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove depdnency #

Patch Set 3 : Use const #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -30 lines) Patch
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h View 1 2 chunks +1 line, -11 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp View 1 2 3 chunks +9 lines, -16 lines 1 comment Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 1 chunk +1 line, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 20 (11 generated)
rlanday
3 years, 8 months ago (2017-04-21 04:02:14 UTC) #3
Xiaocheng
lgtm https://codereview.chromium.org/2833753004/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2833753004/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode496 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:496: for (DocumentMarker::MarkerType type : DocumentMarker::AllMarkers()) { Just noticed ...
3 years, 8 months ago (2017-04-21 05:40:32 UTC) #5
rlanday
On 2017/04/21 at 05:40:32, xiaochengh wrote: > lgtm > > https://codereview.chromium.org/2833753004/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp > File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): ...
3 years, 8 months ago (2017-04-21 05:42:00 UTC) #6
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2833753004/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp (right): https://codereview.chromium.org/2833753004/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode504 third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:504: unsigned start = marker.StartOffset(); nit: s/unsigned/const ...
3 years, 8 months ago (2017-04-21 08:29:33 UTC) #9
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/2833753004/40001
3 years, 8 months ago (2017-04-21 08:44:18 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/436288)
3 years, 8 months ago (2017-04-21 10:17:27 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/2833753004/40001
3 years, 8 months ago (2017-04-21 23:39:37 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/ad6b1f378b7706541d97b227638ba93c446fc8f1
3 years, 8 months ago (2017-04-22 00:58:11 UTC) #19
rlanday
3 years, 8 months ago (2017-04-22 10:03:23 UTC) #20
Message was sent while issue was closed.
https://codereview.chromium.org/2833753004/diff/40001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
(right):

https://codereview.chromium.org/2833753004/diff/40001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp:519:
const String marker_text = ToText(node).data().Substring(start, length);
oops, missed making this a reference here, I'm moving this to
DocumentMarkerListEditor anyway in https://codereview.chromium.org/2836563002
though so I can fix it there

Powered by Google App Engine
This is Rietveld 408576698