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

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

Issue 2836183002: [DMC #6] Add TextMatchMarkerListImpl (Closed)
Patch Set: final 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 3cab342b3b0c8b37f31852244d68f386d24f666d..e6e67c732f3df129031ba0821c0804b295cb8734 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -36,10 +36,10 @@
#include "core/editing/iterators/TextIterator.h"
#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/SpellingMarkerListImpl.h"
+#include "core/editing/markers/TextMatchMarkerListImpl.h"
#include "core/frame/FrameView.h"
#include "core/layout/LayoutObject.h"
@@ -76,9 +76,12 @@ DocumentMarkerList* CreateListForType(DocumentMarker::MarkerType type) {
return new SpellingMarkerListImpl();
case DocumentMarker::kGrammar:
return new GrammarMarkerListImpl();
- default:
- return new GenericDocumentMarkerListImpl(type);
+ case DocumentMarker::kTextMatch:
+ return new TextMatchMarkerListImpl();
}
+
+ NOTREACHED();
+ return nullptr;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698