| Index: Source/core/html/shadow/SliderThumbElement.cpp
|
| diff --git a/Source/core/html/shadow/SliderThumbElement.cpp b/Source/core/html/shadow/SliderThumbElement.cpp
|
| index ac6ada3facd51e0428573f3367ab378120996bdc..8f97dc7af7f5af1b5062318fce599acdb2305f06 100644
|
| --- a/Source/core/html/shadow/SliderThumbElement.cpp
|
| +++ b/Source/core/html/shadow/SliderThumbElement.cpp
|
| @@ -46,8 +46,6 @@
|
| #include "core/rendering/RenderSlider.h"
|
| #include "core/rendering/RenderTheme.h"
|
|
|
| -using namespace std;
|
| -
|
| namespace WebCore {
|
|
|
| using namespace HTMLNames;
|
| @@ -285,7 +283,7 @@ void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point)
|
| position -= isLeftToRightDirection ? renderBox()->marginLeft() : renderBox()->marginRight();
|
| currentPosition = absoluteThumbOrigin.x() - absoluteSliderContentOrigin.x();
|
| }
|
| - position = max<LayoutUnit>(0, min(position, trackSize));
|
| + position = std::max<LayoutUnit>(0, std::min(position, trackSize));
|
| const Decimal ratio = Decimal::fromDouble(static_cast<double>(position) / trackSize);
|
| const Decimal fraction = isVertical || !isLeftToRightDirection ? Decimal(1) - ratio : ratio;
|
| StepRange stepRange(input->createStepRange(RejectAny));
|
|
|