Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h |
| diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h |
| index ec2bb76b466b6992e2867828a7293bbc8610f56e..cf3e14bcaa79ca5d74785ea07973bcbc7e17531a 100644 |
| --- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h |
| +++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h |
| @@ -46,6 +46,13 @@ class CORE_EXPORT DocumentMarkerListEditor final { |
| unsigned old_length, |
| unsigned new_length); |
| + // Returns the first marker in the specified MarkerList that has non-empty |
|
Xiaocheng
2017/07/20 21:29:49
Let's say "Returns the first marker whose interior
|
| + // overlap with the range [start_offset, end_offset], or null if there is no |
| + // such marker. |
| + static DocumentMarker* FirstMarkerIntersectingRange(const MarkerList&, |
| + unsigned start_offset, |
| + unsigned end_offset); |
| + |
| static HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( |
| const MarkerList&, |
| unsigned start_offset, |