Commit d73506ec authored by kenrb's avatar kenrb Committed by Commit bot

Fix for CrossProcessMouseEnterAndLeaveTest on high DPI machines

Using hard-coded coordinates for mouse input events resolves the problem
of GetViewBounds returning CSS pixels, which are inconsistent across
different device scale factors.

BUG=647202

Review-Url: https://codereview.chromium.org/2354563002
Cr-Commit-Position: refs/heads/master@{#419474}
parent c7da74b7
......@@ -1366,10 +1366,8 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
d_node->current_frame_host()->GetRenderWidgetHost());
gfx::Point point_in_a_frame(2, 2);
gfx::Point point_in_b_frame(rwhv_b->GetViewBounds().x(),
rwhv_b->GetViewBounds().y());
gfx::Point point_in_d_frame(rwhv_d->GetViewBounds().x(),
rwhv_d->GetViewBounds().y());
gfx::Point point_in_b_frame(313, 147);
gfx::Point point_in_d_frame(471, 207);
blink::WebMouseEvent mouse_event;
mouse_event.type = blink::WebInputEvent::MouseMove;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment