Index: third_party/WebKit/Source/platform/graphics/filters/SpotLightSource.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/SpotLightSource.cpp b/third_party/WebKit/Source/platform/graphics/filters/SpotLightSource.cpp |
index 6b0b61351af0fae0d9fadf053a6ae47ae8d8e7f7..004ac41e89cece505960abe092f9766b278a8ec9 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/SpotLightSource.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/SpotLightSource.cpp |
@@ -32,7 +32,7 @@ |
#include "platform/graphics/filters/SpotLightSource.h" |
#include "platform/text/TextStream.h" |
-#include <algorithm> |
+#include "wtf/MathExtras.h" |
namespace blink { |
@@ -54,7 +54,7 @@ bool SpotLightSource::setPointsAt(const FloatPoint3D& direction) |
bool SpotLightSource::setSpecularExponent(float specularExponent) |
{ |
- specularExponent = std::min(std::max(specularExponent, 1.0f), 128.0f); |
+ specularExponent = clampTo(specularExponent, 1.0f, 128.0f); |
if (m_specularExponent == specularExponent) |
return false; |
m_specularExponent = specularExponent; |