DescriptionAdd 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
Dependent Patchsets: Messages
Total messages: 16 (9 generated)
|