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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/Serialization.cpp

Issue 2727843003: Replace RELEASE_ASSERT with CHECK in core/{dom,editing,html} (Closed)
Patch Set: Add a comment Created 3 years, 10 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/serializers/Serialization.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
index 794b7cedd64da049c5e3a5630dec9f97d295c63d..5619d25c099c6d1bfb4f5ada3ac584a06c1d6ef3 100644
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
@@ -263,7 +263,7 @@ String CreateMarkupAlgorithm<Strategy>::createMarkup(
if (startPosition.isNull() || endPosition.isNull())
return emptyString;
- RELEASE_ASSERT(startPosition.compareTo(endPosition) <= 0);
+ CHECK_LE(startPosition.compareTo(endPosition), 0);
bool collapsed = startPosition == endPosition;
if (collapsed)

Powered by Google App Engine
This is Rietveld 408576698