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

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

Issue 2982313002: [MarkersIntersectingRange #2.05] Add DocumentMarkerList::FirstMarkerIntersectingRange() (Closed)
Patch Set: Rebase Created 3 years, 5 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/ActiveSuggestionMarkerListImpl.h" 5 #include "core/editing/markers/ActiveSuggestionMarkerListImpl.h"
6 6
7 #include "core/editing/markers/DocumentMarkerListEditor.h" 7 #include "core/editing/markers/DocumentMarkerListEditor.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 void ActiveSuggestionMarkerListImpl::Clear() { 24 void ActiveSuggestionMarkerListImpl::Clear() {
25 markers_.clear(); 25 markers_.clear();
26 } 26 }
27 27
28 const HeapVector<Member<DocumentMarker>>& 28 const HeapVector<Member<DocumentMarker>>&
29 ActiveSuggestionMarkerListImpl::GetMarkers() const { 29 ActiveSuggestionMarkerListImpl::GetMarkers() const {
30 return markers_; 30 return markers_;
31 } 31 }
32 32
33 DocumentMarker* ActiveSuggestionMarkerListImpl::FirstMarkerIntersectingRange(
34 unsigned start_offset,
35 unsigned end_offset) const {
36 return DocumentMarkerListEditor::FirstMarkerIntersectingRange(
37 markers_, start_offset, end_offset);
38 }
39
33 HeapVector<Member<DocumentMarker>> 40 HeapVector<Member<DocumentMarker>>
34 ActiveSuggestionMarkerListImpl::MarkersIntersectingRange( 41 ActiveSuggestionMarkerListImpl::MarkersIntersectingRange(
35 unsigned start_offset, 42 unsigned start_offset,
36 unsigned end_offset) const { 43 unsigned end_offset) const {
37 return DocumentMarkerListEditor::MarkersIntersectingRange( 44 return DocumentMarkerListEditor::MarkersIntersectingRange(
38 markers_, start_offset, end_offset); 45 markers_, start_offset, end_offset);
39 } 46 }
40 47
41 bool ActiveSuggestionMarkerListImpl::MoveMarkers( 48 bool ActiveSuggestionMarkerListImpl::MoveMarkers(
42 int length, 49 int length,
(...skipping 13 matching lines...) Expand all
56 return DocumentMarkerListEditor::ShiftMarkersContentIndependent( 63 return DocumentMarkerListEditor::ShiftMarkersContentIndependent(
57 &markers_, offset, old_length, new_length); 64 &markers_, offset, old_length, new_length);
58 } 65 }
59 66
60 DEFINE_TRACE(ActiveSuggestionMarkerListImpl) { 67 DEFINE_TRACE(ActiveSuggestionMarkerListImpl) {
61 visitor->Trace(markers_); 68 visitor->Trace(markers_);
62 DocumentMarkerList::Trace(visitor); 69 DocumentMarkerList::Trace(visitor);
63 } 70 }
64 71
65 } // namespace blink 72 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698