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

Unified Diff: third_party/WebKit/Source/core/editing/markers/SpellingMarker.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/SpellingMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/SpellingMarker.cpp b/third_party/WebKit/Source/core/editing/markers/SpellingMarker.cpp
index fa0b1b1bce88b5645c277ed23de06f8291033a82..0d7d11008ce9bc7e592e5febec96bd7108de9039 100644
--- a/third_party/WebKit/Source/core/editing/markers/SpellingMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/SpellingMarker.cpp
@@ -9,11 +9,12 @@ namespace blink {
SpellingMarker::SpellingMarker(unsigned start_offset,
unsigned end_offset,
const String& description)
- : SpellCheckMarker(DocumentMarker::kSpelling,
- start_offset,
- end_offset,
- description) {
+ : SpellCheckMarker(start_offset, end_offset, description) {
DCHECK_LT(start_offset, end_offset);
}
+DocumentMarker::MarkerType SpellingMarker::GetType() const {
+ return DocumentMarker::kSpelling;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698