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]; |
} |