Index: third_party/WebKit/Source/wtf/MathExtras.h |
diff --git a/third_party/WebKit/Source/wtf/MathExtras.h b/third_party/WebKit/Source/wtf/MathExtras.h |
index f7da0f3722304df4718a24b6584c38b7d6607690..efcd871bb32a0639202c4fbc81e024b16cf7925c 100644 |
--- a/third_party/WebKit/Source/wtf/MathExtras.h |
+++ b/third_party/WebKit/Source/wtf/MathExtras.h |
@@ -358,8 +358,8 @@ template <typename LimitType, typename ValueType> |
inline LimitType clampTo(ValueType value, |
LimitType min = defaultMinimumForClamp<LimitType>(), |
LimitType max = defaultMaximumForClamp<LimitType>()) { |
- ASSERT(!std::isnan(static_cast<double>(value))); |
- ASSERT(min <= max); // This also ensures |min| and |max| aren't NaN. |
+ DCHECK(!std::isnan(static_cast<double>(value))); |
+ DCHECK_LE(min, max); // This also ensures |min| and |max| aren't NaN. |
return ClampToHelper<LimitType, ValueType>::clampTo(value, min, max); |
} |