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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 9bc67deca1d0043cec06f3f1919348d9b26a045f..114f44ce0189c634bfafd473d118d7bdeebec109 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2135,8 +2135,8 @@ void Node::createAndDispatchPointerEvent(const AtomicString& mouseEventName,
pointerEventInit.setComposed(true);
pointerEventInit.setDetail(0);
- pointerEventInit.setScreenX(mouseEvent.globalX);
- pointerEventInit.setScreenY(mouseEvent.globalY);
+ pointerEventInit.setScreenX(mouseEvent.positionInScreen().x);
+ pointerEventInit.setScreenY(mouseEvent.positionInScreen().y);
IntPoint locationInFrameZoomed;
if (view && view->frame() && view->frame()->view()) {

Powered by Google App Engine
This is Rietveld 408576698