| 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 b4b39609f6d92d773f29cdd0d6ef19eef9305434..372e90c46befcc06052406e9c9927f578ac79416 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/filters/FESpecularLighting.cpp
|
| @@ -25,6 +25,8 @@
|
|
|
| #include "platform/graphics/filters/LightSource.h"
|
| #include "platform/text/TextStream.h"
|
| +#include "wtf/MathExtras.h"
|
| +#include <algorithm>
|
|
|
| namespace blink {
|
|
|
| @@ -92,7 +94,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;
|
|
|