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

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

Issue 2781623010: Add DocumentMarker::clone() (Closed)
Patch Set: Remove dependency that's messing with trybots 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/DocumentMarker.h
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
index dbcfdf2964555be13aa50b7551bf2305f37a6fd8..b8260c3856eea6ac0aecfcb557dc46cdfe235e4e 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarker.h
@@ -145,7 +145,8 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
bool thick,
Color backgroundColor);
- DocumentMarker(const DocumentMarker&);
+ DocumentMarker* cloneWithNewOffsets(unsigned startOffset,
+ unsigned endOffset) const;
MarkerType type() const { return m_type; }
unsigned startOffset() const { return m_startOffset; }
@@ -176,6 +177,10 @@ class CORE_EXPORT DocumentMarker : public GarbageCollected<DocumentMarker> {
DECLARE_TRACE();
+ protected:
+ DocumentMarker(const DocumentMarker&);
+ virtual DocumentMarker* clone() const;
+
private:
MarkerType m_type;
unsigned m_startOffset;
« no previous file with comments | « third_party/WebKit/Source/core/editing/BUILD.gn ('k') | third_party/WebKit/Source/core/editing/markers/DocumentMarker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698