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 64d9ebdb2ac32b413c008162d48ba1d76fef6fc3..66e5280a2191cb90dd4979518a63aa02a13aef4d 100644 |
| --- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h |
| +++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.h |
| @@ -94,6 +94,15 @@ class CORE_EXPORT DocumentMarkerController final |
| // Position in its interior (not at an endpoint), if one exists. |
| DocumentMarker* MarkerAtPosition(const Position&, |
| DocumentMarker::MarkerTypes); |
| + // Looks for a marker in the specified node of the specified type whose |
| + // interior has non-empty overlap with the range [start_offset, end_offset]. |
| + // If the range is collapsed, this looks for a marker containing the offset of |
| + // the collapsed range in its interior. |
| + DocumentMarker* FirstMarkerIntersectingOffsetRange( |
|
yosin_UTC9
2017/07/20 01:07:01
Can we mark |FirstMarkerIntersectingOffsetRange()|
|
| + const Text&, |
| + unsigned start_offset, |
| + unsigned end_offset, |
| + DocumentMarker::MarkerTypes); |
| DocumentMarkerVector MarkersFor( |
| Node*, |
| DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers()); |