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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerList.h

Issue 2982313002: [MarkersIntersectingRange #2.05] Add DocumentMarkerList::FirstMarkerIntersectingRange() (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698