summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreae <eae@chromium.org>2016-01-20 16:50:27 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-21 00:51:08 +0000
commit43e8a257aa8a91092e2d872cce36cdc7b331f442 (patch)
tree1360d32f848dcbad8edb7693e8be06dcfcb3f49b
parentef949168a65c9ffebddebac7cb6ee21ce72e2a3d (diff)
downloadchromium_src-43e8a257aa8a91092e2d872cce36cdc7b331f442.zip
chromium_src-43e8a257aa8a91092e2d872cce36cdc7b331f442.tar.gz
chromium_src-43e8a257aa8a91092e2d872cce36cdc7b331f442.tar.bz2
Change position assert to release assert in editing serializer
Change the start and end position assert in Serialization::createMarkup to a release assert to help track down cases where it fails to be true. BUG=570255 R=leviw@chromium.org Review URL: https://codereview.chromium.org/1604103002 Cr-Commit-Position: refs/heads/master@{#370551}
-rw-r--r--third_party/WebKit/Source/core/editing/serializers/Serialization.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
index 84ffbf1..2f02430 100644
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
@@ -245,7 +245,7 @@ String CreateMarkupAlgorithm<Strategy>::createMarkup(const PositionTemplate<Stra
if (startPosition.isNull() || endPosition.isNull())
return emptyString();
- ASSERT(startPosition.compareTo(endPosition) <= 0);
+ RELEASE_ASSERT(startPosition.compareTo(endPosition) <= 0);
bool collapsed = startPosition == endPosition;
if (collapsed)