Minor cleanup in EventHandler::dragHysteresisExceeded.
The IntPoint version of EventHandler::dragHysteresisExceeded converts its parameter to a FloatPoint and calls the FloatPoint version. In turn, that converts the parameter back to an IntPoint, and then does the real work. Last, the IntPoint version's parameter is called floatDragViewportLocation, whereas the FloatPoint version's parameter is called dragViewportLocation. This change moves the real work in the IntPoint version, and uses the FloatPoint->IntPoint conversion code inside the old FloatPoint version to delegate from the FloatPoint version to the IntPoint version. The main goal is to reduce cognitive overhead on readers. The change also removes an obsolete comment in DragActions. The comment refers to WebDragDestinationAction, which does not currently exist in blink. BUG= Review URL: https://codereview.chromium.org/339123003 git-svn-id: svn://svn.chromium.org/blink/trunk@176354 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment