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

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 32cfbb69a6e82b65065615c2720eee5e132ebb6a..eadeee2f38057493ac189e90173a454964c1c3ad 100644
--- a/third_party/WebKit/Source/core/editing/markers/GrammarMarker.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/GrammarMarker.cpp
@@ -9,11 +9,12 @@ 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) {
DCHECK_LT(start_offset, end_offset);
}
+DocumentMarker::MarkerType GrammarMarker::GetType() const {
+ return DocumentMarker::kGrammar;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698