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

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

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Fix nits 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 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));
« no previous file with comments | « third_party/WebKit/Source/web/PopupMenuImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698