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

Unified Diff: third_party/WebKit/Source/web/WebRange.cpp

Issue 2373613005: Update DCHECK in WebRange constructor. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebRange.cpp
diff --git a/third_party/WebKit/Source/web/WebRange.cpp b/third_party/WebKit/Source/web/WebRange.cpp
index 05d91f098aafac098cdf3bad9786d932ab18c372..f850170d2c53e64d4235b28c1418b89fde39607e 100644
--- a/third_party/WebKit/Source/web/WebRange.cpp
+++ b/third_party/WebKit/Source/web/WebRange.cpp
@@ -42,7 +42,7 @@ WebRange::WebRange(int start, int length)
: m_start(start)
, m_end(start + length)
{
- DCHECK(start != -1 && length != 0) << "These values are reserved to indicate that the range is null";
+ DCHECK(start != -1 || length != 0) << "These values are reserved to indicate that the range is null";
}
WebRange::WebRange(const EphemeralRange& range)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698