Index: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp |
index 8ff5670b996beb76a95961e52bc4dbd73f039919..2f1df5b1efa90b09e958bc500182999cd0381405 100644 |
--- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp |
@@ -540,9 +540,9 @@ void WebDevToolsAgentImpl::inspectElementAt(int sessionId, |
WTF::monotonicallyIncreasingTimeMS()); |
dummyEvent.x = pointInRootFrame.x; |
dummyEvent.y = pointInRootFrame.y; |
- IntPoint transformedPoint = |
- PlatformMouseEventBuilder(m_webLocalFrameImpl->frameView(), dummyEvent) |
- .position(); |
+ IntPoint transformedPoint = flooredIntPoint( |
+ TransformWebMouseEvent(m_webLocalFrameImpl->frameView(), dummyEvent) |
+ .positionInRootFrame()); |
HitTestResult result( |
request, |
m_webLocalFrameImpl->frameView()->rootFrameToContents(transformedPoint)); |