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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.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/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,

Powered by Google App Engine
This is Rietveld 408576698