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

Issue 2765013003: Add iterator for DocumentMarker::MarkerTypes (Closed)

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

Description

Add iterator for DocumentMarker::MarkerTypes This idea came up in code review for a DocumentMarkerController refactor: https://codereview.chromium.org/2723663002/diff/180002/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp#newcode214 Review-Url: https://codereview.chromium.org/2765013003 Cr-Commit-Position: refs/heads/master@{#459159} Committed: https://chromium.googlesource.com/chromium/src/+/9b3e9af19463c051da0da835f4181bba204169a3

Patch Set 1 #

Total comments: 9

Patch Set 2 : Make requested changes #

Total comments: 5

Patch Set 3 : Respond to comments #

Total comments: 2

Patch Set 4 : rightmost => least significant #

Total comments: 1

Patch Set 5 : Work around MSVC warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -0 lines) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarker.h View 1 2 3 4 2 chunks +43 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp View 1 2 1 chunk +48 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (17 generated)
rlanday
3 years, 9 months ago (2017-03-22 00:47:20 UTC) #3
Xiaocheng
Thanks for the quick patch! https://codereview.chromium.org/2765013003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): https://codereview.chromium.org/2765013003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode60 third_party/WebKit/Source/core/editing/markers/DocumentMarker.h:60: explicit MarkerTypesIterator(int markerTypes) s/int/unsigned/ ...
3 years, 9 months ago (2017-03-22 01:02:58 UTC) #4
rlanday
https://codereview.chromium.org/2765013003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp (right): https://codereview.chromium.org/2765013003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp#newcode25 third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp:25: ASSERT_EQ(markerTypes.contains(type), typesFromIterator.contains(type)); On 2017/03/22 at 01:02:58, Xiaocheng wrote: > ...
3 years, 9 months ago (2017-03-22 01:38:25 UTC) #5
Xiaocheng
https://codereview.chromium.org/2765013003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp (right): https://codereview.chromium.org/2765013003/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp#newcode22 third_party/WebKit/Source/core/editing/markers/DocumentMarkerTest.cpp:22: for (int i = 0; i < DocumentMarker::MarkerTypeIndexesCount; ++i) ...
3 years, 9 months ago (2017-03-22 01:47:12 UTC) #6
rlanday
Updated
3 years, 9 months ago (2017-03-22 02:35:36 UTC) #8
Xiaocheng
lgtm
3 years, 9 months ago (2017-03-22 02:40:01 UTC) #10
yosin_UTC9
https://codereview.chromium.org/2765013003/diff/20001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): https://codereview.chromium.org/2765013003/diff/20001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode58 third_party/WebKit/Source/core/editing/markers/DocumentMarker.h:58: class MarkerTypesIterator { Let's add std::iterator<std::forward_iterator_tag, MarkerType> See http://en.cppreference.com/w/cpp/iterator/iterator ...
3 years, 9 months ago (2017-03-22 04:06:26 UTC) #13
rlanday
Updated
3 years, 9 months ago (2017-03-22 17:50:10 UTC) #15
Xiaocheng
https://codereview.chromium.org/2765013003/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): https://codereview.chromium.org/2765013003/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode74 third_party/WebKit/Source/core/editing/markers/DocumentMarker.h:74: // Turn off rightmost 1-bit (from Hacker's Delight 2-1) ...
3 years, 9 months ago (2017-03-22 17:57:05 UTC) #17
rlanday
On 2017/03/22 at 17:57:05, xiaochengh wrote: > https://codereview.chromium.org/2765013003/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h > File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): > > https://codereview.chromium.org/2765013003/diff/40001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode74 ...
3 years, 9 months ago (2017-03-22 18:16:31 UTC) #19
rlanday
https://codereview.chromium.org/2765013003/diff/60001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): https://codereview.chromium.org/2765013003/diff/60001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode90 third_party/WebKit/Source/core/editing/markers/DocumentMarker.h:90: return static_cast<MarkerType>(m_remainingTypes & -m_remainingTypes); xiaochengh, MSVC is throwing a ...
3 years, 9 months ago (2017-03-22 18:38:18 UTC) #21
Xiaocheng
On 2017/03/22 at 18:38:18, rlanday wrote: > https://codereview.chromium.org/2765013003/diff/60001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h > File third_party/WebKit/Source/core/editing/markers/DocumentMarker.h (right): > > https://codereview.chromium.org/2765013003/diff/60001/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h#newcode90 ...
3 years, 9 months ago (2017-03-22 18:40:46 UTC) #22
rlanday
On 2017/03/22 at 18:40:46, xiaochengh wrote: > On 2017/03/22 at 18:38:18, rlanday wrote: > > ...
3 years, 9 months ago (2017-03-23 01:15:49 UTC) #25
Xiaocheng
still lgtm
3 years, 9 months ago (2017-03-23 02:18:48 UTC) #26
yosin_UTC9
lgtm Thanks!
3 years, 9 months ago (2017-03-23 04:03:44 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/2765013003/80001
3 years, 9 months ago (2017-03-23 16:55:56 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/389851)
3 years, 9 months ago (2017-03-23 17:13:36 UTC) #31
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/2765013003/80001
3 years, 9 months ago (2017-03-23 17:21:31 UTC) #33
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 18:43:39 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/9b3e9af19463c051da0da835f418...

Powered by Google App Engine
This is Rietveld 408576698