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 81e70712aa4f1a83e4b755c430b9e8f30f2fe915..bf240b8a698e2162fa3b26d489175a7a8aa77398 100644 |
--- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp |
@@ -538,9 +538,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)); |