Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1231)

Unified Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698