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

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

Issue 2868413002: [DMC #5.55] Add DocumentMarkerList::MarkerType() (Closed)
Patch Set: Fix mistake in comment 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/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 #include "core/editing/markers/RenderedDocumentMarker.h" 8 #include "core/editing/markers/RenderedDocumentMarker.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 DocumentMarker::MarkerType CompositionMarkerListImpl::MarkerType() const {
13 return DocumentMarker::kComposition;
14 }
15
12 bool CompositionMarkerListImpl::IsEmpty() const { 16 bool CompositionMarkerListImpl::IsEmpty() const {
13 return markers_.IsEmpty(); 17 return markers_.IsEmpty();
14 } 18 }
15 19
16 void CompositionMarkerListImpl::Add(DocumentMarker* marker) { 20 void CompositionMarkerListImpl::Add(DocumentMarker* marker) {
17 DocumentMarkerListEditor::AddMarkerWithoutMergingOverlapping(&markers_, 21 DocumentMarkerListEditor::AddMarkerWithoutMergingOverlapping(&markers_,
18 marker); 22 marker);
19 } 23 }
20 24
21 void CompositionMarkerListImpl::Clear() { 25 void CompositionMarkerListImpl::Clear() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return DocumentMarkerListEditor::ShiftMarkers(&markers_, offset, old_length, 58 return DocumentMarkerListEditor::ShiftMarkers(&markers_, offset, old_length,
55 new_length); 59 new_length);
56 } 60 }
57 61
58 DEFINE_TRACE(CompositionMarkerListImpl) { 62 DEFINE_TRACE(CompositionMarkerListImpl) {
59 visitor->Trace(markers_); 63 visitor->Trace(markers_);
60 DocumentMarkerList::Trace(visitor); 64 DocumentMarkerList::Trace(visitor);
61 } 65 }
62 66
63 } // namespace blink 67 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698