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/SpellCheckMarkerListImpl.h" | 5 #include "core/editing/markers/SpellCheckMarkerListImpl.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 DocumentMarkerList* dst_list) { | 58 DocumentMarkerList* dst_list) { |
59 return DocumentMarkerListEditor::MoveMarkers(&markers_, length, dst_list); | 59 return DocumentMarkerListEditor::MoveMarkers(&markers_, length, dst_list); |
60 } | 60 } |
61 | 61 |
62 bool SpellCheckMarkerListImpl::RemoveMarkers(unsigned start_offset, | 62 bool SpellCheckMarkerListImpl::RemoveMarkers(unsigned start_offset, |
63 int length) { | 63 int length) { |
64 return DocumentMarkerListEditor::RemoveMarkers(&markers_, start_offset, | 64 return DocumentMarkerListEditor::RemoveMarkers(&markers_, start_offset, |
65 length); | 65 length); |
66 } | 66 } |
67 | 67 |
68 bool SpellCheckMarkerListImpl::RemoveMarkersUnderWords( | |
69 const String& node_text, | |
70 const Vector<String>& words) { | |
71 return DocumentMarkerListEditor::RemoveMarkersUnderWords(&markers_, node_text, | |
72 words); | |
73 } | |
74 | |
75 bool SpellCheckMarkerListImpl::ShiftMarkers(unsigned offset, | 68 bool SpellCheckMarkerListImpl::ShiftMarkers(unsigned offset, |
76 unsigned old_length, | 69 unsigned old_length, |
77 unsigned new_length) { | 70 unsigned new_length) { |
78 return DocumentMarkerListEditor::ShiftMarkers(&markers_, offset, old_length, | 71 return DocumentMarkerListEditor::ShiftMarkers(&markers_, offset, old_length, |
79 new_length); | 72 new_length); |
80 } | 73 } |
81 | 74 |
82 DEFINE_TRACE(SpellCheckMarkerListImpl) { | 75 DEFINE_TRACE(SpellCheckMarkerListImpl) { |
83 visitor->Trace(markers_); | 76 visitor->Trace(markers_); |
84 DocumentMarkerList::Trace(visitor); | 77 DocumentMarkerList::Trace(visitor); |
85 } | 78 } |
86 | 79 |
87 } // namespace blink | 80 } // namespace blink |
OLD | NEW |