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

Unified Diff: third_party/WebKit/Source/core/editing/markers/GrammarMarker.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/GrammarMarker.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/GrammarMarker.cpp b/third_party/WebKit/Source/core/editing/markers/GrammarMarker.cpp
index a2b8d5c9416fc3b652ec791a130919f8768f9130..a668ea991bdc97b4786b9f8a0f0e00a84001ba8c 100644
--- a/third_party/WebKit/Source/core/editing/markers/GrammarMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/GrammarMarker.cpp
@@ -9,9 +9,10 @@ namespace blink {
GrammarMarker::GrammarMarker(unsigned start_offset,
unsigned end_offset,
const String& description)
- : SpellCheckMarker(DocumentMarker::kGrammar,
- start_offset,
- end_offset,
- description) {}
+ : SpellCheckMarker(start_offset, end_offset, description) {}
+
+DocumentMarker::MarkerType GrammarMarker::GetType() const {
+ return DocumentMarker::kGrammar;
+}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698