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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h

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/TextBufferBase.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h b/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h
index 28d0a6a383dfea382b3e2cf8df13917b6d001e74..95a0624fbf42519f521ed9120348b19f0ea5edcf 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h
+++ b/third_party/WebKit/Source/core/editing/iterators/TextBufferBase.h
@@ -19,7 +19,7 @@ public:
size_t size() const { return m_size; }
bool isEmpty() const { return m_size == 0; }
size_t capacity() const { return m_buffer.capacity(); }
- const UChar& operator[](size_t index) const { ASSERT(index < m_size); return data()[index]; }
+ const UChar& operator[](size_t index) const { DCHECK_LT(index, m_size); return data()[index]; }
virtual const UChar* data() const = 0;
void pushCharacters(UChar, size_t length);

Powered by Google App Engine
This is Rietveld 408576698