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

Issue 2952953002: [MarkersIntersectingRange #1] Add DocumentMarkerList::MarkersIntersectingRange() (Closed)

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

Description

Add DocumentMarkerList::MarkersIntersectingRange() Currently, the only way to find the list of markers intersecting a range is to iterate through the nodes the range contains, and get the complete list of nodes for each range from DocumentMarkerController, and do a linear search through the list. This is inefficient if we have a text node with a lot of markers, since we could be doing a binary search instead of a linear scan. This CL prepares us to add a DocumentMarkerController::MarkersIntersectingRange() method by supporting the necessary operation on the DocumentMarkerLists for each type (this is necessary because DocumentMarkerController shouldn't be making any assumptions about how each list is stored). BUG=715365 Review-Url: https://codereview.chromium.org/2952953002 Cr-Commit-Position: refs/heads/master@{#481588} Committed: https://chromium.googlesource.com/chromium/src/+/6c17fd58d40e84744ce40192a457888de8334a54

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -0 lines) Patch
M third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerListImpl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/ActiveSuggestionMarkerListImpl.cpp View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h View 1 chunk +5 lines, -0 lines 3 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp View 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditorTest.cpp View 1 chunk +75 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerListImpl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerListImpl.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp View 1 chunk +7 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (9 generated)
rlanday
https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h (right): https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h#newcode49 third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h:49: static HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( This isn't actually an editing method, ...
3 years, 6 months ago (2017-06-22 01:59:37 UTC) #3
yosin_UTC9
lgtm https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h (right): https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h#newcode49 third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h:49: static HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( On 2017/06/22 at 01:59:37, rlanday ...
3 years, 6 months ago (2017-06-22 02:28:20 UTC) #6
Xiaocheng
https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h (right): https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h#newcode49 third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h:49: static HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( On 2017/06/22 at 02:28:20, yosin_UTC9 wrote: ...
3 years, 6 months ago (2017-06-22 03:06:06 UTC) #7
rlanday
On 2017/06/22 at 03:06:06, xiaochengh wrote: > https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h > File third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h (right): > > https://codereview.chromium.org/2952953002/diff/1/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h#newcode49 ...
3 years, 6 months ago (2017-06-22 03:19:00 UTC) #8
yosin_UTC9
On 2017/06/22 at 03:19:00, rlanday wrote: > On 2017/06/22 at 03:06:06, xiaochengh wrote: > > ...
3 years, 6 months ago (2017-06-22 04:34:16 UTC) #11
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/2952953002/1
3 years, 6 months ago (2017-06-22 17:38:29 UTC) #13
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 17:44:02 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/6c17fd58d40e84744ce40192a457...

Powered by Google App Engine
This is Rietveld 408576698