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

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

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Rebased, fixed a comment in web_input_event_builders_mac.mm Created 3 years, 8 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 0ba7564508a0dafcbca0fa5fde2be4a1fd4a3f6a..2b86e5ce8ed0224d2b1e9556b0c46edcd3eadbc6 100644
--- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
@@ -543,8 +543,7 @@ void WebDevToolsAgentImpl::inspectElementAt(int sessionId,
HitTestRequest request(hitType);
WebMouseEvent dummyEvent(WebInputEvent::MouseDown, WebInputEvent::NoModifiers,
WTF::monotonicallyIncreasingTimeMS());
- dummyEvent.x = pointInRootFrame.x;
- dummyEvent.y = pointInRootFrame.y;
+ dummyEvent.setPositionInWidget(pointInRootFrame.x, pointInRootFrame.y);
IntPoint transformedPoint = flooredIntPoint(
TransformWebMouseEvent(m_webLocalFrameImpl->frameView(), dummyEvent)
.positionInRootFrame());
« no previous file with comments | « third_party/WebKit/Source/platform/WebMouseEvent.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698