| Index: Source/wtf/MathExtras.h
|
| diff --git a/Source/wtf/MathExtras.h b/Source/wtf/MathExtras.h
|
| index 030b1defd2d8a42ad5e2f23d93f9abcddc73b348..e95702d2f18fa7431e0d8983580157763db794d6 100644
|
| --- a/Source/wtf/MathExtras.h
|
| +++ b/Source/wtf/MathExtras.h
|
| @@ -353,8 +353,7 @@ template<> inline double defaultMinimumForClamp<double>() { return -std::numeric
|
| // And, finally, the actual function for people to call.
|
| template<typename LimitType, typename ValueType> inline LimitType clampTo(ValueType value, LimitType min = defaultMinimumForClamp<LimitType>(), LimitType max = defaultMaximumForClamp<LimitType>())
|
| {
|
| - // FIXME: Uncomment this after fixing all callsites which violate it.
|
| - // ASSERT(!std::isnan(static_cast<double>(value)));
|
| + ASSERT(!std::isnan(static_cast<double>(value)));
|
| ASSERT(min <= max); // This also ensures |min| and |max| aren't NaN.
|
| return ClampToHelper<LimitType, ValueType>::clampTo(value, min, max);
|
| }
|
|
|