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

Unified Diff: third_party/WebKit/Source/core/html/TimeRanges.cpp

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 years, 4 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/html/TimeRanges.cpp
diff --git a/third_party/WebKit/Source/core/html/TimeRanges.cpp b/third_party/WebKit/Source/core/html/TimeRanges.cpp
index 507e7bb70507301d9f5ed03fd2987a0b5ef79548..b28e97f78704083438832f594d97ae486d508941 100644
--- a/third_party/WebKit/Source/core/html/TimeRanges.cpp
+++ b/third_party/WebKit/Source/core/html/TimeRanges.cpp
@@ -86,7 +86,7 @@ void TimeRanges::invert()
void TimeRanges::intersectWith(const TimeRanges* other)
{
- ASSERT(other);
+ DCHECK(other);
if (other == this)
return;
@@ -101,7 +101,7 @@ void TimeRanges::intersectWith(const TimeRanges* other)
void TimeRanges::unionWith(const TimeRanges* other)
{
- ASSERT(other);
+ DCHECK(other);
TimeRanges* unioned = copy();
for (size_t index = 0; index < other->m_ranges.size(); ++index) {
const Range& range = other->m_ranges[index];
@@ -131,7 +131,7 @@ double TimeRanges::end(unsigned index, ExceptionState& exceptionState) const
void TimeRanges::add(double start, double end)
{
- ASSERT(start <= end);
+ DCHECK_LE(start, end);
unsigned overlappingArcIndex;
Range addedRange(start, end);
« no previous file with comments | « third_party/WebKit/Source/core/html/RadioNodeList.cpp ('k') | third_party/WebKit/Source/core/html/URLRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698