Index: components/mus/event_dispatcher.cc |
diff --git a/components/mus/event_dispatcher.cc b/components/mus/event_dispatcher.cc |
index 9796267efa6ba97111040194b981b5828a1eb040..a04e389c099579da3c4d194e169dea6205fd6769 100644 |
--- a/components/mus/event_dispatcher.cc |
+++ b/components/mus/event_dispatcher.cc |
@@ -73,9 +73,8 @@ |
ServerView* focused_view = view_tree_host_->GetFocusedView(); |
if (event->pointer_data) { |
ServerView* root = view_tree_host_->root_view(); |
- const gfx::Point root_point( |
- static_cast<int>(event->pointer_data->location->x), |
- static_cast<int>(event->pointer_data->location->y)); |
+ const gfx::Point root_point(static_cast<int>(event->pointer_data->x), |
+ static_cast<int>(event->pointer_data->y)); |
ServerView* target = focused_view; |
if (event->action == mojo::EVENT_TYPE_POINTER_DOWN || !target || |
!root->Contains(target)) { |
@@ -83,10 +82,10 @@ |
CHECK(target); |
} |
const gfx::PointF local_point(ConvertPointFBetweenViews( |
- root, target, gfx::PointF(event->pointer_data->location->x, |
- event->pointer_data->location->y))); |
- event->pointer_data->location->x = local_point.x(); |
- event->pointer_data->location->y = local_point.y(); |
+ root, target, |
+ gfx::PointF(event->pointer_data->x, event->pointer_data->y))); |
+ event->pointer_data->x = local_point.x(); |
+ event->pointer_data->y = local_point.y(); |
return target; |
} |