Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1456)

Unified Diff: Source/core/page/EventHandler.cpp

Issue 339123003: Minor cleanup in EventHandler::dragHysteresisExceeded. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: (ab)using this CL to remove an invalid comment. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/DragActions.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/page/DragActions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698