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

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

Issue 2911733002: [DMC #25] Make DocumentMarker::GetType() virtual (Closed)
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp b/third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp
index f445f502b496b4608790cf16e0b725f2a00e337a..f24217de7f541dce3e5b7f93a3ee73c419df9682 100644
--- a/third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/CompositionMarker.cpp
@@ -11,11 +11,15 @@ CompositionMarker::CompositionMarker(unsigned start_offset,
Color underline_color,
bool thick,
Color background_color)
- : DocumentMarker(DocumentMarker::kComposition, start_offset, end_offset),
+ : DocumentMarker(start_offset, end_offset),
underline_color_(underline_color),
background_color_(background_color),
thick_(thick) {}
+DocumentMarker::MarkerType CompositionMarker::GetType() const {
+ return DocumentMarker::kComposition;
+}
+
Color CompositionMarker::UnderlineColor() const {
return underline_color_;
}

Powered by Google App Engine
This is Rietveld 408576698