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

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

Issue 2857173003: Remove DocumentMarkerController::MarkersInRange() (Closed)
Patch Set: Use std::find_if() Created 3 years, 7 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 e367111ab43022717793fc3802096bdaa66b35d4..4bcc38db12950418fa33118a54df0b6dce11eef1 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h
@@ -86,11 +86,13 @@ class CORE_EXPORT DocumentMarkerController final
bool);
bool HasMarkers(Node* node) const { return markers_.Contains(node); }
+ // Returns a marker of one of the specified types that includes the specified
+ // Position in its interior (not at an endpoint), if one exists.
+ DocumentMarker* MarkerAtPosition(const Position&,
+ DocumentMarker::MarkerTypes);
DocumentMarkerVector MarkersFor(
Node*,
DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers());
- DocumentMarkerVector MarkersInRange(const EphemeralRange&,
- DocumentMarker::MarkerTypes);
DocumentMarkerVector Markers();
Vector<IntRect> RenderedRectsForMarkers(DocumentMarker::MarkerType);
void UpdateMarkerRenderedRectIfNeeded(const Node&, RenderedDocumentMarker&);

Powered by Google App Engine
This is Rietveld 408576698