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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/ForwardsTextBuffer.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/ForwardsTextBuffer.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBuffer.cpp b/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBuffer.cpp
index 9bc426895f169b4e0a6a7235d610bd4ed3a99233..707706cde9bc4bc9b858a7c63e5540576be1661b 100644
--- a/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBuffer.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/ForwardsTextBuffer.cpp
@@ -13,7 +13,7 @@ const UChar* ForwardsTextBuffer::data() const
UChar* ForwardsTextBuffer::calcDestination(size_t length)
{
- ASSERT(size() + length <= capacity());
+ DCHECK_LE(size() + length, capacity());
return bufferBegin() + size();
}

Powered by Google App Engine
This is Rietveld 408576698