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

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

Issue 2820633002: [DMC #2] Add DocumentMarkerList interface and GenericDocumentMarkerListImpl (Closed)
Patch Set: Rebase 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 28c78d36fdecf6eff98ac6f8ad1f5c545a661ea4..5a70422c8396433712f158e57ead69af702a973a 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
@@ -40,7 +40,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;
@@ -55,7 +55,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