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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.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/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index b7dec8c8d01ae3f1db6eeefc353ad6078847c0f3..48b429d1ed799cce51e948da027bd5adbfff9bc3 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -146,8 +146,8 @@ void updateMousePointerEventInit(const WebMouseEvent& mouseEvent,
// and pointerType which is the same among the coalesced events and the
// dispatched event.
- 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()) {
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | third_party/WebKit/Source/core/input/EventHandlerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698