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

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

Issue 2982313002: [MarkersIntersectingRange #2.05] Add DocumentMarkerList::FirstMarkerIntersectingRange() (Closed)
Patch Set: Add comment to DMLEditor::FirstMarkerIntersectingRange() 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..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,

Powered by Google App Engine
This is Rietveld 408576698