Index: content/browser/frame_host/cross_process_frame_connector.cc |
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc |
index 1d8b23c041186c75129f4e8b0e6e2c893fe119a8..fef7ff7a621f0f0362efa0d9e2ce52191dee9aff 100644 |
--- a/content/browser/frame_host/cross_process_frame_connector.cc |
+++ b/content/browser/frame_host/cross_process_frame_connector.cc |
@@ -172,15 +172,15 @@ void CrossProcessFrameConnector::UpdateCursor(const WebCursor& cursor) { |
root_view->UpdateCursor(cursor); |
} |
-void CrossProcessFrameConnector::TransformPointToRootCoordSpace( |
+gfx::Point CrossProcessFrameConnector::TransformPointToRootCoordSpace( |
const gfx::Point& point, |
- cc::SurfaceId surface_id, |
- gfx::Point* transformed_point) { |
+ cc::SurfaceId surface_id) { |
+ gfx::Point transformed_point = point; |
RenderWidgetHostViewBase* root_view = GetRootRenderWidgetHostView(); |
- *transformed_point = point; |
if (root_view) |
root_view->TransformPointToLocalCoordSpace(point, surface_id, |
- transformed_point); |
+ &transformed_point); |
+ return transformed_point; |
} |
bool CrossProcessFrameConnector::HasFocus() { |