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..f6aaf30db6bcbb95c10c57d010159f2559db89c0 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 whose interior |
+ // overlaps 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, |