| Index: Source/core/html/RangeInputType.cpp
|
| diff --git a/Source/core/html/RangeInputType.cpp b/Source/core/html/RangeInputType.cpp
|
| index 17500b1a88c025f74479d6d9e2b3ca8b0626d5c7..cbd4c3ece319aa2e7bb5924c2ff7055ddca69b03 100644
|
| --- a/Source/core/html/RangeInputType.cpp
|
| +++ b/Source/core/html/RangeInputType.cpp
|
| @@ -48,13 +48,16 @@
|
| #include "ShadowRoot.h"
|
| #include "SliderThumbElement.h"
|
| #include "StepRange.h"
|
| -#include "Touch.h"
|
| -#include "TouchEvent.h"
|
| -#include "TouchList.h"
|
| #include <limits>
|
| #include <wtf/MathExtras.h>
|
| #include <wtf/PassOwnPtr.h>
|
|
|
| +#if ENABLE(TOUCH_EVENTS)
|
| +#include "Touch.h"
|
| +#include "TouchEvent.h"
|
| +#include "TouchList.h"
|
| +#endif
|
| +
|
| #if ENABLE(DATALIST_ELEMENT)
|
| #include "HTMLDataListElement.h"
|
| #include "HTMLOptionElement.h"
|
| @@ -164,6 +167,7 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event)
|
| thumb->dragFrom(event->absoluteLocation());
|
| }
|
|
|
| +#if ENABLE(TOUCH_EVENTS)
|
| void RangeInputType::handleTouchEvent(TouchEvent* event)
|
| {
|
| if (element()->isDisabledOrReadOnly())
|
| @@ -187,6 +191,7 @@ bool RangeInputType::hasTouchEventHandler() const
|
| {
|
| return true;
|
| }
|
| +#endif
|
|
|
| void RangeInputType::handleKeydownEvent(KeyboardEvent* event)
|
| {
|
|
|