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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.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/CompositionMarkerListImpl.h" 5 #include "core/editing/markers/CompositionMarkerListImpl.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 CompositionMarkerListImpl::Clear() { 24 void CompositionMarkerListImpl::Clear() {
25 markers_.clear(); 25 markers_.clear();
26 } 26 }
27 27
28 const HeapVector<Member<DocumentMarker>>& 28 const HeapVector<Member<DocumentMarker>>&
29 CompositionMarkerListImpl::GetMarkers() const { 29 CompositionMarkerListImpl::GetMarkers() const {
30 return markers_; 30 return markers_;
31 } 31 }
32 32
33 DocumentMarker* CompositionMarkerListImpl::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 CompositionMarkerListImpl::MarkersIntersectingRange(unsigned start_offset, 41 CompositionMarkerListImpl::MarkersIntersectingRange(unsigned start_offset,
35 unsigned end_offset) const { 42 unsigned end_offset) const {
36 return DocumentMarkerListEditor::MarkersIntersectingRange( 43 return DocumentMarkerListEditor::MarkersIntersectingRange(
37 markers_, start_offset, end_offset); 44 markers_, start_offset, end_offset);
38 } 45 }
39 46
40 bool CompositionMarkerListImpl::MoveMarkers(int length, 47 bool CompositionMarkerListImpl::MoveMarkers(int length,
41 DocumentMarkerList* dst_markers_) { 48 DocumentMarkerList* dst_markers_) {
42 return DocumentMarkerListEditor::MoveMarkers(&markers_, length, dst_markers_); 49 return DocumentMarkerListEditor::MoveMarkers(&markers_, length, dst_markers_);
(...skipping 11 matching lines...) Expand all
54 return DocumentMarkerListEditor::ShiftMarkersContentIndependent( 61 return DocumentMarkerListEditor::ShiftMarkersContentIndependent(
55 &markers_, offset, old_length, new_length); 62 &markers_, offset, old_length, new_length);
56 } 63 }
57 64
58 DEFINE_TRACE(CompositionMarkerListImpl) { 65 DEFINE_TRACE(CompositionMarkerListImpl) {
59 visitor->Trace(markers_); 66 visitor->Trace(markers_);
60 DocumentMarkerList::Trace(visitor); 67 DocumentMarkerList::Trace(visitor);
61 } 68 }
62 69
63 } // namespace blink 70 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698