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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp

Issue 2871823002: [DMC #5.7] Move DocumentMarkerList::RemoveMarkersUnderWords() to SpellCheckMarkerListImpl (Closed)
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698