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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/CharacterIterator.cpp

Issue 2394683005: Remove ASSERT_UNUSED (Closed)
Patch Set: Created 4 years, 2 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/CharacterIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/CharacterIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/CharacterIterator.cpp
index eb932a62d717c7be58073602315182b11bf9a3bc..73404bec56e04cc7316619bf03240e7864d90514 100644
--- a/third_party/WebKit/Source/core/editing/iterators/CharacterIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/CharacterIterator.cpp
@@ -66,7 +66,7 @@ EphemeralRangeTemplate<Strategy> CharacterIteratorAlgorithm<Strategy>::range()
PositionTemplate<Strategy> endPosition =
range.endPosition().parentAnchoredEquivalent();
Node* node = startPosition.computeContainerNode();
- ASSERT_UNUSED(endPosition, node == endPosition.computeContainerNode());
+ DCHECK_EQ(node, endPosition.computeContainerNode());
int offset = startPosition.offsetInContainerNode() + m_runOffset;
return EphemeralRangeTemplate<Strategy>(
PositionTemplate<Strategy>(node, offset),

Powered by Google App Engine
This is Rietveld 408576698