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

Unified Diff: third_party/WebKit/Source/core/layout/shapes/RasterShape.h

Issue 2748103015: Replace ASSERT with DCHECK in core/layout/<sub dirs> (Closed)
Patch Set: Rebase with latest Created 3 years, 9 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/layout/shapes/RasterShape.h
diff --git a/third_party/WebKit/Source/core/layout/shapes/RasterShape.h b/third_party/WebKit/Source/core/layout/shapes/RasterShape.h
index da78fcd4425f0a71a7cccfb284189e402f26df6c..124c3a8855ab94f78d191017412df9386356ec41 100644
--- a/third_party/WebKit/Source/core/layout/shapes/RasterShape.h
+++ b/third_party/WebKit/Source/core/layout/shapes/RasterShape.h
@@ -52,14 +52,14 @@ class RasterShapeIntervals {
bool isEmpty() const { return m_bounds.isEmpty(); }
IntShapeInterval& intervalAt(int y) {
- ASSERT(y + m_offset >= 0 &&
- static_cast<unsigned>(y + m_offset) < m_intervals.size());
+ DCHECK_GE(y + m_offset, 0);
+ DCHECK_LT(static_cast<unsigned>(y + m_offset), m_intervals.size());
return m_intervals[y + m_offset];
}
const IntShapeInterval& intervalAt(int y) const {
- ASSERT(y + m_offset >= 0 &&
- static_cast<unsigned>(y + m_offset) < m_intervals.size());
+ DCHECK_GE(y + m_offset, 0);
+ DCHECK_LT(static_cast<unsigned>(y + m_offset), m_intervals.size());
return m_intervals[y + m_offset];
}

Powered by Google App Engine
This is Rietveld 408576698