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

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

Issue 2082503003: ASSERT -> DCHECK conversions in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 ed6699fed74eda54db3a4f00fd3a3a34b6629dbd..a4488b6ae8e8784634c77c75f5f3a57de5d869fa 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerController.cpp
@@ -73,7 +73,7 @@ DocumentMarker::MarkerTypeIndex MarkerTypeToMarkerIndex(DocumentMarker::MarkerTy
return DocumentMarker::CompositionMarkerIndex;
}
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return DocumentMarker::SpellingMarkerIndex;
}
@@ -702,7 +702,7 @@ void DocumentMarkerController::shiftMarkers(Node* node, unsigned startOffset, in
continue;
MarkerList::iterator startPos = std::lower_bound(list->begin(), list->end(), startOffset, startsAfter);
for (MarkerList::iterator marker = startPos; marker != list->end(); ++marker) {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
int startOffset = (*marker)->startOffset();
DCHECK_GE(startOffset + delta, 0);
#endif

Powered by Google App Engine
This is Rietveld 408576698