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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.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/MouseEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.cpp b/third_party/WebKit/Source/core/events/MouseEvent.cpp
index 46290ee336f7b8e5ff54e53774ac6e1938ba57e1..7e8c7ecddd050c2c83e12f4da0d602d550c75057 100644
--- a/third_party/WebKit/Source/core/events/MouseEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp
@@ -168,7 +168,7 @@ MouseEvent::MouseEvent(const AtomicString& eventType,
? abstractView->getInputDeviceCapabilities()->firesTouchEvents(
event.fromTouch())
: nullptr),
- m_screenLocation(event.globalX, event.globalY),
+ m_screenLocation(event.positionInScreen().x, event.positionInScreen().y),
m_movementDelta(flooredIntPoint(event.movementInRootFrame())),
m_positionType(PositionType::Position),
m_button(static_cast<short>(event.button)),
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698