| Index: third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
|
| index 2def68062a52df084cfdaec0a2f391f6480aaac9..ebdd408ef4f3c87b74fe5879c58922ddd2badc71 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/SliderThumbElement.cpp
|
| @@ -144,7 +144,7 @@ void SliderThumbElement::setPositionFromPoint(const LayoutPoint& point)
|
| position -= isLeftToRightDirection ? layoutBox()->marginLeft() : layoutBox()->marginRight();
|
| currentPosition = absoluteThumbOrigin.x() - absoluteSliderContentOrigin.x();
|
| }
|
| - position = std::max<LayoutUnit>(0, std::min(position, trackSize));
|
| + position = std::min(position, trackSize).clampNegativeToZero();
|
| const Decimal ratio = Decimal::fromDouble(static_cast<double>(position) / trackSize);
|
| const Decimal fraction = isVertical || !isLeftToRightDirection ? Decimal(1) - ratio : ratio;
|
| StepRange stepRange(input->createStepRange(RejectAny));
|
|
|