Index: third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp |
index 38e7a6deeb37d3a91a1cc4e88c015e71e59a8c25..3d446a9205b5cccf3263604d320882e87a689564 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorInputAgent.cpp |
@@ -101,10 +101,10 @@ public: |
} |
}; |
-void ConvertInspectorPoint(blink::LocalFrame* frame, const blink::IntPoint& point, blink::IntPoint* convertedPoint, blink::IntPoint* globalPoint) |
+void ConvertInspectorPoint(blink::LocalFrame* frame, const blink::IntPoint& pointInFrame, blink::IntPoint* convertedPoint, blink::IntPoint* globalPoint) |
{ |
- *convertedPoint = frame->view()->convertToContainingWindow(point); |
- *globalPoint = frame->page()->chromeClient().viewportToScreen(blink::IntRect(point, blink::IntSize(0, 0))).location(); |
+ *convertedPoint = frame->view()->convertToRootFrame(pointInFrame); |
+ *globalPoint = frame->page()->chromeClient().viewportToScreen(blink::IntRect(pointInFrame, blink::IntSize(0, 0))).location(); |
} |
} // namespace |