DescriptionMinor 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=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176354
Patch Set 1 #Patch Set 2 : (ab)using this CL to remove an invalid comment. #
Messages
Total messages: 6 (0 generated)
|