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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerListImpl.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
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerListImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerListImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698