Commit 201c93cd authored by kenrb's avatar kenrb Committed by Commit bot

Fix CrossProcessMouseEnterAndLeaveTest on Mac

SitePerProcessBrowserTest.CrossProcessMouseEnterAndLeaveTest is failing
on the Mac continuous build. The logs appear to show that the event
targeting is missing the correct frames, which might be because of the
inverted y-axis affecting GetViewBounds(). This CL should fix that
problem.

TBR=avi@chromium.org
BUG=647202

Review-Url: https://codereview.chromium.org/2346843002
Cr-Commit-Position: refs/heads/master@{#418893}
parent 7eeda924
...@@ -1365,10 +1365,10 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, ...@@ -1365,10 +1365,10 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
d_node->current_frame_host()->GetRenderWidgetHost()); d_node->current_frame_host()->GetRenderWidgetHost());
gfx::Point point_in_a_frame(2, 2); gfx::Point point_in_a_frame(2, 2);
gfx::Point point_in_b_frame(rwhv_b->GetViewBounds().x() + 2, gfx::Point point_in_b_frame(rwhv_b->GetViewBounds().x(),
rwhv_b->GetViewBounds().y() + 2); rwhv_b->GetViewBounds().y());
gfx::Point point_in_d_frame(rwhv_d->GetViewBounds().x() + 2, gfx::Point point_in_d_frame(rwhv_d->GetViewBounds().x(),
rwhv_d->GetViewBounds().y() + 2); rwhv_d->GetViewBounds().y());
blink::WebMouseEvent mouse_event; blink::WebMouseEvent mouse_event;
mouse_event.type = blink::WebInputEvent::MouseMove; 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