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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp

Issue 2820633002: [DMC #2] Add DocumentMarkerList interface and GenericDocumentMarkerListImpl (Closed)
Patch Set: Fix nit Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
index 72d3b4491132756e10a50cda6dedc8506de91482..737a2e5ec23386516c29ab49ad13d2cb93e7792a 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
@@ -35,7 +35,7 @@ void DocumentMarkerListEditor::AddMarker(MarkerList* list,
bool DocumentMarkerListEditor::MoveMarkers(MarkerList* src_list,
int length,
- MarkerList* dst_list) {
+ DocumentMarkerList* dst_list) {
DCHECK_GT(length, 0);
bool didMoveMarker = false;
unsigned end_offset = length - 1;
@@ -50,7 +50,7 @@ bool DocumentMarkerListEditor::MoveMarkers(MarkerList* src_list,
if (marker.EndOffset() > end_offset)
marker.SetEndOffset(end_offset);
- DocumentMarkerListEditor::AddMarker(dst_list, &marker);
+ dst_list->Add(&marker);
didMoveMarker = true;
}

Powered by Google App Engine
This is Rietveld 408576698