Fix the wrong relative coordinates from EventDispatch
The problem is that the event's coordrinates are moved to the
negative location when testing MouseLeaveTest.MouseDownOnBrowserCaption
in interactive_ui_tests. Becasue it tries to calculate the relative
coordinates one more in WindowEventDispatcher::DispatchMouseEnterOrExit
if target window is null.
We should use the target window from PreDispatchMouseEvent to
prevent that window is null.
BUG=409601
[email protected]
TEST=WindowEventDispatcherTest.MouseEventWithoutTargetWindow
Review URL: https://codereview.chromium.org/754013007
Cr-Commit-Position: refs/heads/master@{#310445}
4 files changed