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

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

Issue 2868413002: [DMC #5.55] Add DocumentMarkerList::MarkerType() (Closed)
Patch Set: Fix mistake in comment 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/DocumentMarkerController.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
index 54dee492069420a55cde2fd632d508431df5353d..3c5a0e5f7ec1f994b70543a058e06ae5a3c78450 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -37,8 +37,9 @@
#include "core/editing/markers/CompositionMarkerListImpl.h"
#include "core/editing/markers/DocumentMarkerListEditor.h"
#include "core/editing/markers/GenericDocumentMarkerListImpl.h"
+#include "core/editing/markers/GrammarMarkerListImpl.h"
#include "core/editing/markers/RenderedDocumentMarker.h"
-#include "core/editing/markers/SpellCheckMarkerListImpl.h"
+#include "core/editing/markers/SpellingMarkerListImpl.h"
#include "core/frame/FrameView.h"
#include "core/layout/LayoutObject.h"
@@ -72,10 +73,11 @@ DocumentMarkerList* CreateListForType(DocumentMarker::MarkerType type) {
case DocumentMarker::kComposition:
return new CompositionMarkerListImpl();
case DocumentMarker::kSpelling:
+ return new SpellingMarkerListImpl();
case DocumentMarker::kGrammar:
- return new SpellCheckMarkerListImpl();
+ return new GrammarMarkerListImpl();
default:
- return new GenericDocumentMarkerListImpl();
+ return new GenericDocumentMarkerListImpl(type);
}
}

Powered by Google App Engine
This is Rietveld 408576698