| 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 e91b6744e21b01b7d9fde5abab14d158326bc22a..4ee0df35acb4232ac76a4e81e3afaf444992692e 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/RangeInputType.cpp
|
| @@ -36,13 +36,10 @@
|
| #include "core/InputTypeNames.h"
|
| #include "core/dom/AXObjectCache.h"
|
| #include "core/dom/NodeComputedStyle.h"
|
| -#include "core/dom/Touch.h"
|
| -#include "core/dom/TouchList.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| #include "core/events/KeyboardEvent.h"
|
| #include "core/events/MouseEvent.h"
|
| #include "core/events/ScopedEventQueue.h"
|
| -#include "core/events/TouchEvent.h"
|
| #include "core/html/HTMLDataListElement.h"
|
| #include "core/html/HTMLDataListOptionsCollection.h"
|
| #include "core/html/HTMLDivElement.h"
|
| @@ -168,29 +165,6 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event)
|
| thumb->dragFrom(event->absoluteLocation());
|
| }
|
|
|
| -void RangeInputType::handleTouchEvent(TouchEvent* event)
|
| -{
|
| - if (element().isDisabledOrReadOnly())
|
| - return;
|
| -
|
| - if (event->type() == EventTypeNames::touchend) {
|
| - element().dispatchFormControlChangeEvent();
|
| - event->setDefaultHandled();
|
| - return;
|
| - }
|
| -
|
| - TouchList* touches = event->targetTouches();
|
| - if (touches->length() == 1) {
|
| - sliderThumbElement()->setPositionFromPoint(touches->item(0)->absoluteLocation());
|
| - event->setDefaultHandled();
|
| - }
|
| -}
|
| -
|
| -bool RangeInputType::hasTouchEventHandler() const
|
| -{
|
| - return true;
|
| -}
|
| -
|
| void RangeInputType::handleKeydownEvent(KeyboardEvent* event)
|
| {
|
| if (element().isDisabledOrReadOnly())
|
| @@ -262,6 +236,7 @@ void RangeInputType::createShadowSubtree()
|
| track->appendChild(SliderThumbElement::create(document));
|
| HTMLElement* container = SliderContainerElement::create(document);
|
| container->appendChild(track);
|
| + container->setAttribute(styleAttr, "-webkit-appearance:inherit");
|
| element().userAgentShadowRoot()->appendChild(container);
|
| }
|
|
|
|
|