Index: third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp b/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp |
index 29962d2261c4f276d8ca87aae7d38d8853059fe1..b4cc65666f3fbc3b3c4e0ba6abbece1cfe77c5c3 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp |
@@ -24,6 +24,8 @@ |
#include "platform/graphics/filters/LightSource.h" |
#include "platform/text/TextStream.h" |
+#include "wtf/MathExtras.h" |
+#include <algorithm> |
namespace blink { |
@@ -91,7 +93,7 @@ float FESpecularLighting::specularExponent() const |
bool FESpecularLighting::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; |