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

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

Issue 1878473002: ASSERT -> DCHECK in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Output info for some DCHECKs, add TODOs. Created 4 years, 8 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/BackwardsCharacterIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.cpp
index 338de628f37ea7695760042a772edd6ee041419f..2d6f8bb3f7a3abbeda55859288f6aa43fd0d9160 100644
--- a/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.cpp
@@ -47,7 +47,7 @@ PositionTemplate<Strategy> BackwardsCharacterIteratorAlgorithm<Strategy>::endPos
Node* n = m_textIterator.startContainer();
return PositionTemplate<Strategy>::editingPositionOf(n, m_textIterator.endOffset() - m_runOffset);
}
- ASSERT(!m_runOffset);
+ DCHECK(!m_runOffset);
}
return m_textIterator.endPosition();
}
@@ -56,7 +56,7 @@ template <typename Strategy>
void BackwardsCharacterIteratorAlgorithm<Strategy>::advance(int count)
{
if (count <= 0) {
- ASSERT(!count);
+ DCHECK(!count);
return;
}

Powered by Google App Engine
This is Rietveld 408576698