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

Unified Diff: third_party/WebKit/Source/core/editing/PlainTextRange.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/PlainTextRange.h
diff --git a/third_party/WebKit/Source/core/editing/PlainTextRange.h b/third_party/WebKit/Source/core/editing/PlainTextRange.h
index eacfe4a499c95e52b5091719c7b880c806ab7e53..0988510dd54f1a4313e50654f0baf74d7f1404d0 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(isNotNull()); return m_end; }
+ size_t start() const { DCHECK(isNotNull()); return m_start; }
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(isNotNull()); return m_end - m_start; }
EphemeralRange createRange(const ContainerNode& scope) const;
EphemeralRange createRangeForSelection(const ContainerNode& scope) const;

Powered by Google App Engine
This is Rietveld 408576698