windows: Fix Views test failures (fixes issue #3365)

This commit is contained in:
Marshall Greenblatt
2022-07-27 13:57:53 -04:00
parent a9043f2e80
commit 654f570b6e
6 changed files with 39 additions and 18 deletions

View File

@@ -552,12 +552,8 @@ void CefWindowImpl::SendMouseMove(int screen_x, int screen_y) {
CEF_REQUIRE_VALID_RETURN_VOID();
InitializeUITesting();
// Converts to pixel coordinates internally on Windows.
gfx::Point point(screen_x, screen_y);
#if BUILDFLAG(IS_WIN)
// Windows expects pixel coordinates.
point = display::win::ScreenWin::DIPToScreenPoint(point);
#endif
ui_controls::SendMouseMove(point.x(), point.y());
}