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

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

Issue 2948133004: [MarkersIntersectingRange #2] Add DocumentMarkerController::MarkersIntersectingRange() (Closed)
Patch Set: Update comment, Empty => Collapsed Created 3 years, 6 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/DocumentMarkerController.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
index 64d9ebdb2ac32b413c008162d48ba1d76fef6fc3..fd46980b46b4efcbf748b38f26fdc935d056ed4f 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -94,6 +94,14 @@ class CORE_EXPORT DocumentMarkerController final
// Position in its interior (not at an endpoint), if one exists.
DocumentMarker* MarkerAtPosition(const Position&,
DocumentMarker::MarkerTypes);
+ // Return all markers of the specified types whose interiors have non-empty
+ // overlap with the range [start_offset, end_offset]. Note that the range can
+ // be collapsed, in which case markers containing the offset in their
+ // interiors are returned.
+ template <typename Strategy>
+ HeapVector<std::pair<Member<Node>, Member<DocumentMarker>>>
+ MarkersIntersectingRange(const EphemeralRangeTemplate<Strategy>&,
+ DocumentMarker::MarkerTypes);
DocumentMarkerVector MarkersFor(
Node*,
DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());

Powered by Google App Engine
This is Rietveld 408576698