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

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

Issue 2784753002: Add TextMatchMarkerList in preparation for DocumentMarkerController refactor (Closed)
Patch Set: Remove unnecessary TextMatchMarker constructor Created 3 years, 9 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/DocumentMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
index 7465262ac7324e34a6102a1154e37cefc431b5c4..bedc9349501b405d2a49e097dd1c38ada1a72dce 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp
@@ -129,6 +129,10 @@ inline TextCompositionMarkerDetails* toTextCompositionMarkerDetails(
return nullptr;
}
+DocumentMarker* DocumentMarker::clone() const {
+ return new DocumentMarker(*this);
+}
+
DocumentMarker::DocumentMarker(MarkerType type,
unsigned startOffset,
unsigned endOffset,

Powered by Google App Engine
This is Rietveld 408576698