| Index: third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
|
| index d67be4f11948261b48c0ffedaea89485069d91f8..b24700293578bc3654f8fac1378a5348450c2b5a 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
|
| @@ -31,6 +31,7 @@
|
|
|
| #include "core/html/forms/RangeInputType.h"
|
|
|
| +#include <limits>
|
| #include "bindings/core/v8/ExceptionState.h"
|
| #include "core/HTMLNames.h"
|
| #include "core/InputTypeNames.h"
|
| @@ -39,6 +40,7 @@
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| #include "core/events/KeyboardEvent.h"
|
| #include "core/events/MouseEvent.h"
|
| +#include "core/events/PointerEvent.h"
|
| #include "core/events/ScopedEventQueue.h"
|
| #include "core/html/HTMLDataListElement.h"
|
| #include "core/html/HTMLDataListOptionsCollection.h"
|
| @@ -52,7 +54,6 @@
|
| #include "core/layout/LayoutSlider.h"
|
| #include "wtf/MathExtras.h"
|
| #include "wtf/NonCopyingSort.h"
|
| -#include <limits>
|
|
|
| namespace blink {
|
|
|
| @@ -148,7 +149,7 @@ bool RangeInputType::isSteppable() const {
|
| return true;
|
| }
|
|
|
| -void RangeInputType::handleMouseDownEvent(MouseEvent* event) {
|
| +void RangeInputType::handlePointerDownEvent(PointerEvent* event) {
|
| if (element().isDisabledFormControl())
|
| return;
|
|
|
| @@ -164,7 +165,7 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event) {
|
| SliderThumbElement* thumb = sliderThumbElement();
|
| if (targetNode == thumb)
|
| return;
|
| - thumb->dragFrom(LayoutPoint(event->absoluteLocation()));
|
| + thumb->dragFrom(event);
|
| }
|
|
|
| void RangeInputType::handleKeydownEvent(KeyboardEvent* event) {
|
| @@ -314,7 +315,7 @@ void RangeInputType::warnIfValueIsInvalid(const String& value) const {
|
|
|
| void RangeInputType::disabledAttributeChanged() {
|
| if (element().isDisabledFormControl())
|
| - sliderThumbElement()->stopDragging();
|
| + sliderThumbElement()->releasePointerCapture();
|
| }
|
|
|
| bool RangeInputType::shouldRespectListAttribute() {
|
|
|