| Index: Source/core/page/EventHandler.cpp
|
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
|
| index d4c199dff8b4632723169f6e713ba52e56ae6e9d..47cdf764de991e30807ed87f69fb022e6bc2c668 100644
|
| --- a/Source/core/page/EventHandler.cpp
|
| +++ b/Source/core/page/EventHandler.cpp
|
| @@ -3011,18 +3011,17 @@ void EventHandler::defaultKeyboardEventHandler(KeyboardEvent* event)
|
| }
|
| }
|
|
|
| -bool EventHandler::dragHysteresisExceeded(const IntPoint& floatDragViewportLocation) const
|
| +bool EventHandler::dragHysteresisExceeded(const FloatPoint& floatDragViewportLocation) const
|
| {
|
| - FloatPoint dragViewportLocation(floatDragViewportLocation.x(), floatDragViewportLocation.y());
|
| - return dragHysteresisExceeded(dragViewportLocation);
|
| + return dragHysteresisExceeded(flooredIntPoint(floatDragViewportLocation));
|
| }
|
|
|
| -bool EventHandler::dragHysteresisExceeded(const FloatPoint& dragViewportLocation) const
|
| +bool EventHandler::dragHysteresisExceeded(const IntPoint& dragViewportLocation) const
|
| {
|
| FrameView* view = m_frame->view();
|
| if (!view)
|
| return false;
|
| - IntPoint dragLocation = view->windowToContents(flooredIntPoint(dragViewportLocation));
|
| + IntPoint dragLocation = view->windowToContents(dragViewportLocation);
|
| IntSize delta = dragLocation - m_mouseDownPos;
|
|
|
| int threshold = GeneralDragHysteresis;
|
|
|