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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.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/iterators/SimplifiedBackwardsTextIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
index d8fc2817cf0f6518b01f9c700d985619909a5b3e..7801a996ed4dc8463383a32829242f06a3c3b562 100644
--- a/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/SimplifiedBackwardsTextIterator.cpp
@@ -257,8 +257,7 @@ bool SimplifiedBackwardsTextIteratorAlgorithm<Strategy>::handleTextNode() {
m_textOffset = m_positionStartOffset - offsetInNode;
m_textContainer = text;
m_singleCharacterBuffer = 0;
- RELEASE_ASSERT(static_cast<unsigned>(m_textOffset + m_textLength) <=
- text.length());
+ CHECK_LE(static_cast<unsigned>(m_textOffset + m_textLength), text.length());
return !m_shouldHandleFirstLetter;
}

Powered by Google App Engine
This is Rietveld 408576698