Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/PlainTextRange.h |
| diff --git a/third_party/WebKit/Source/core/editing/PlainTextRange.h b/third_party/WebKit/Source/core/editing/PlainTextRange.h |
| index eacfe4a499c95e52b5091719c7b880c806ab7e53..66d8291856fe6a4f70517ee2163c4f5d2606fc25 100644 |
| --- a/third_party/WebKit/Source/core/editing/PlainTextRange.h |
| +++ b/third_party/WebKit/Source/core/editing/PlainTextRange.h |
| @@ -46,11 +46,11 @@ public: |
| explicit PlainTextRange(int location); |
| PlainTextRange(int start, int end); |
| - size_t end() const { ASSERT(!isNull()); return m_end; } |
| - size_t start() const { ASSERT(!isNull()); return m_start; } |
| + size_t end() const { DCHECK(!isNull()); return m_end; } |
|
yosin_UTC9
2016/04/14 04:35:00
Let's use |isNotNull()|.
|
| + size_t start() const { DCHECK(!isNull()); return m_start; } |
|
yosin_UTC9
2016/04/14 04:35:00
Let's use |isNotNull()|.
|
| bool isNull() const { return m_start == kNotFound; } |
| bool isNotNull() const { return m_start != kNotFound; } |
| - size_t length() const { ASSERT(!isNull()); return m_end - m_start; } |
| + size_t length() const { DCHECK(!isNull()); return m_end - m_start; } |
|
yosin_UTC9
2016/04/14 04:35:00
Let's use |isNotNull()|.
|
| EphemeralRange createRange(const ContainerNode& scope) const; |
| EphemeralRange createRangeForSelection(const ContainerNode& scope) const; |