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

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

Issue 2829543002: [DMC #5] Add SpellCheckMarkerListImpl (Closed)
Patch Set: Remove comment about RemoveMarkersUnderWords() being SpellCheckMarkerListImpl-specific (it's not ye… 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/GenericDocumentMarkerListImpl.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp b/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp
index bc83f4d1568c036d293a15a830e9fd0e4cd66693..aa0cd56d6eb13cb78ed0719fe7fcb4333f958e55 100644
--- a/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp
@@ -17,8 +17,7 @@ void GenericDocumentMarkerListImpl::Add(DocumentMarker* marker) {
switch (marker->GetType()) {
case DocumentMarker::kSpelling:
case DocumentMarker::kGrammar:
- DocumentMarkerListEditor::AddMarkerAndMergeOverlapping(&markers_, marker);
- return;
+ NOTREACHED();
case DocumentMarker::kTextMatch:
DocumentMarkerListEditor::AddMarkerWithoutMergingOverlapping(&markers_,
marker);

Powered by Google App Engine
This is Rietveld 408576698