Chromium Code Reviews| 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..d096887b34132a73314d557ca6209fd7accffa87 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. |
| + Optional<DocumentMarker*> MarkerAtPosition(const Position&, |
|
yosin_UTC9
2017/05/11 04:36:02
I think we can use raw pointer and use |nullptr| t
|
| + 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&); |