OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/editing/markers/GenericDocumentMarkerListImpl.h" | 5 #include "core/editing/markers/GenericDocumentMarkerListImpl.h" |
6 | 6 |
7 #include "core/editing/markers/DocumentMarkerListEditor.h" | 7 #include "core/editing/markers/DocumentMarkerListEditor.h" |
8 #include "core/editing/markers/RenderedDocumentMarker.h" | 8 #include "core/editing/markers/RenderedDocumentMarker.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 DocumentMarkerList* dst_list) { | 51 DocumentMarkerList* dst_list) { |
52 return DocumentMarkerListEditor::MoveMarkers(&markers_, length, dst_list); | 52 return DocumentMarkerListEditor::MoveMarkers(&markers_, length, dst_list); |
53 } | 53 } |
54 | 54 |
55 bool GenericDocumentMarkerListImpl::RemoveMarkers(unsigned start_offset, | 55 bool GenericDocumentMarkerListImpl::RemoveMarkers(unsigned start_offset, |
56 int length) { | 56 int length) { |
57 return DocumentMarkerListEditor::RemoveMarkers(&markers_, start_offset, | 57 return DocumentMarkerListEditor::RemoveMarkers(&markers_, start_offset, |
58 length); | 58 length); |
59 } | 59 } |
60 | 60 |
61 bool GenericDocumentMarkerListImpl::RemoveMarkersUnderWords( | |
62 const String& node_text, | |
63 const Vector<String>& words) { | |
64 return DocumentMarkerListEditor::RemoveMarkersUnderWords(&markers_, node_text, | |
65 words); | |
66 } | |
67 | |
68 bool GenericDocumentMarkerListImpl::ShiftMarkers(unsigned offset, | 61 bool GenericDocumentMarkerListImpl::ShiftMarkers(unsigned offset, |
69 unsigned old_length, | 62 unsigned old_length, |
70 unsigned new_length) { | 63 unsigned new_length) { |
71 return DocumentMarkerListEditor::ShiftMarkers(&markers_, offset, old_length, | 64 return DocumentMarkerListEditor::ShiftMarkers(&markers_, offset, old_length, |
72 new_length); | 65 new_length); |
73 } | 66 } |
74 | 67 |
75 DEFINE_TRACE(GenericDocumentMarkerListImpl) { | 68 DEFINE_TRACE(GenericDocumentMarkerListImpl) { |
76 visitor->Trace(markers_); | 69 visitor->Trace(markers_); |
77 DocumentMarkerList::Trace(visitor); | 70 DocumentMarkerList::Trace(visitor); |
78 } | 71 } |
79 | 72 |
80 } // namespace blink | 73 } // namespace blink |
OLD | NEW |