Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h |
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h |
index b5890004ec5fcf3f2ba745189e4b9f942bd179fc..2bbe3fbec256b90440b38192f8b872cde30aac21 100644 |
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h |
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h |
@@ -33,6 +33,11 @@ class CORE_EXPORT DocumentMarkerList |
// Returns all markers |
virtual const HeapVector<Member<DocumentMarker>>& GetMarkers() const = 0; |
+ // Returns the first marker whose interior overlaps with the range |
+ // [start_offset, end_offset], or null if there is no such marker. |
+ virtual DocumentMarker* FirstMarkerIntersectingRange( |
+ unsigned start_offset, |
+ unsigned end_offset) const = 0; |
// Returns markers that have non-empty overlap with the range |
// [start_offset, end_offset] |
virtual HeapVector<Member<DocumentMarker>> MarkersIntersectingRange( |