| 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);
|
|
|