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

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

Issue 2820343004: [DMC #4] Add CompositionMarkerListImpl (Closed)
Patch Set: Change kComposition case to NOTREACHED() Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3c4ceb3289296a65bf76646083c1da8976def1b4..cbe0675c29da1af6c99e9fd3bfc533ab2d6327d4 100644
--- a/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/GenericDocumentMarkerListImpl.cpp
@@ -20,10 +20,11 @@ void GenericDocumentMarkerListImpl::Add(DocumentMarker* marker) {
DocumentMarkerListEditor::AddMarkerAndMergeOverlapping(&markers_, marker);
return;
case DocumentMarker::kTextMatch:
- case DocumentMarker::kComposition:
DocumentMarkerListEditor::AddMarkerWithoutMergingOverlapping(&markers_,
marker);
return;
+ case DocumentMarker::kComposition:
Xiaocheng 2017/04/27 17:49:41 nit: There's no need to add another NOTREACHED(),
rlanday 2017/04/27 18:01:02 I'd have to write "break" or something anyway (I c
Xiaocheng 2017/04/27 18:09:15 All right, fine.
+ NOTREACHED();
}
NOTREACHED();
« no previous file with comments | « third_party/WebKit/Source/core/editing/markers/DocumentMarkerControllerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698