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

Issue 2820343004: [DMC #4] Add CompositionMarkerListImpl (Closed)

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

Description

Add CompositionMarkerListImpl This is the first of the specialized DocumentMarkerList implementations. It is currently quite similar to GenericDocumentMarkerListImpl, except it doesn't have the logic for merging Spelling/Grammar markers, and it doesn't implement the RemoveMarkersUnderWords() method on DocumentMarkerList that will eventually be moved to SpellCheckMarkerList. Eventually we will stop creating RenderedDocumentMarkers in non-TextMatchMarkerLists. BUG=707867 Review-Url: https://codereview.chromium.org/2820343004 Cr-Commit-Position: refs/heads/master@{#470183} Committed: https://chromium.googlesource.com/chromium/src/+/45abde5e4bc317fc2e91152b1d66feec93673563

Patch Set 1 #

Patch Set 2 : Remove comment in DMC::CreateListForType() that's no longer accurate #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase again #

Patch Set 5 : Add comments #

Total comments: 10

Patch Set 6 : Respond to comments #

Patch Set 7 : Use correct base commit #

Total comments: 2

Patch Set 8 : Add NOTREACHED(), re-remove UpdateRenderedRectsForComposition test case #

Patch Set 9 : Change kComposition case to NOTREACHED() #

Total comments: 3

Patch Set 10 : DECLARE_VIRTUAL_TRACE() #

Total comments: 1

Patch Set 11 : Fix bad comment #

Total comments: 3

Patch Set 12 : Fix nits #

Messages

Total messages: 59 (39 generated)
rlanday
3 years, 8 months ago (2017-04-19 01:57:44 UTC) #4
yosin_UTC9
https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp File third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp (right): https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp#newcode18 third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp:18: RenderedDocumentMarker* rendered_marker = It seems this impl is identical ...
3 years, 8 months ago (2017-04-26 06:45:47 UTC) #20
Xiaocheng
https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp File third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp (right): https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp#newcode18 third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp:18: RenderedDocumentMarker* rendered_marker = On 2017/04/26 at 06:45:47, yosin_UTC9 wrote: ...
3 years, 8 months ago (2017-04-26 14:17:53 UTC) #21
rlanday
https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h File third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h (right): https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h#newcode14 third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h:14: // Composition markers are typically inserted in an order. ...
3 years, 8 months ago (2017-04-26 20:33:25 UTC) #22
rlanday
Updated https://codereview.chromium.org/2820343004/diff/120001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp File third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp (right): https://codereview.chromium.org/2820343004/diff/120001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp#newcode44 third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp:44: return DocumentMarkerListEditor::RemoveMarkersUnderWords(&markers_, node_text, I added a call to ...
3 years, 8 months ago (2017-04-26 20:54:07 UTC) #26
Xiaocheng
https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp (left): https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp#oldcode220 third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp:220: TEST_F(DocumentMarkerControllerTest, UpdateRenderedRectsForComposition) { On 2017/04/26 at 20:33:24, rlanday wrote: ...
3 years, 8 months ago (2017-04-26 22:20:37 UTC) #27
rlanday
https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp File third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp (left): https://codereview.chromium.org/2820343004/diff/80001/third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp#oldcode220 third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp:220: TEST_F(DocumentMarkerControllerTest, UpdateRenderedRectsForComposition) { On 2017/04/26 at 22:20:36, Xiaocheng wrote: ...
3 years, 8 months ago (2017-04-26 22:28:00 UTC) #28
Xiaocheng
Please remove the kComposition case from GenDMLImpl::AddMarker, which otherwise becomes dead code after this patch. ...
3 years, 8 months ago (2017-04-27 04:14:52 UTC) #33
rlanday
On 2017/04/27 at 04:14:52, xiaochengh wrote: > Please remove the kComposition case from GenDMLImpl::AddMarker, which ...
3 years, 7 months ago (2017-04-27 17:32:38 UTC) #34
Xiaocheng
All right, no more comments. Let's wait for yosin@'s review to #3.5 https://codereview.chromium.org/2820343004/diff/160001/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp File third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp ...
3 years, 7 months ago (2017-04-27 17:49:41 UTC) #35
rlanday
https://codereview.chromium.org/2820343004/diff/160001/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp File third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp (right): https://codereview.chromium.org/2820343004/diff/160001/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp#newcode26 third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp:26: case DocumentMarker::kComposition: On 2017/04/27 at 17:49:41, Xiaocheng wrote: > ...
3 years, 7 months ago (2017-04-27 18:01:02 UTC) #36
Xiaocheng
https://codereview.chromium.org/2820343004/diff/160001/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp File third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp (right): https://codereview.chromium.org/2820343004/diff/160001/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp#newcode26 third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp:26: case DocumentMarker::kComposition: On 2017/04/27 at 18:01:02, rlanday wrote: > ...
3 years, 7 months ago (2017-04-27 18:09:15 UTC) #37
Xiaocheng
lgtm https://codereview.chromium.org/2820343004/diff/180001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp File third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp (right): https://codereview.chromium.org/2820343004/diff/180001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp#newcode45 third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp:45: // TextMatchMarkerListImpl is added. DocumentMarkerController shouldn't try to ...
3 years, 7 months ago (2017-04-28 18:13:12 UTC) #42
rlanday
On 2017/04/28 at 18:13:12, xiaochengh wrote: > lgtm > > https://codereview.chromium.org/2820343004/diff/180001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp > File third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp (right): ...
3 years, 7 months ago (2017-04-28 18:26:02 UTC) #44
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2820343004/diff/200001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h File third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h (right): https://codereview.chromium.org/2820343004/diff/200001/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h#newcode37 third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h:37: DECLARE_VIRTUAL_TRACE(); nit: Could you add a ...
3 years, 7 months ago (2017-05-08 04:07:39 UTC) #48
rlanday
Ah, I think the DMLEditor changes were done already in https://codereview.chromium.org/2842263002 and were mistakenly included ...
3 years, 7 months ago (2017-05-08 19:00:07 UTC) #49
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/2820343004/220001
3 years, 7 months ago (2017-05-08 19:01:10 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/438553)
3 years, 7 months ago (2017-05-08 19:08:32 UTC) #54
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/2820343004/220001
3 years, 7 months ago (2017-05-09 01:01:44 UTC) #56
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 04:08:58 UTC) #59
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/45abde5e4bc317fc2e91152b1d66...

Powered by Google App Engine
This is Rietveld 408576698