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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.cpp

Issue 2782893002: WebMouseEvent coordinates are now fractional & private (Closed)
Patch Set: Fixed compile failures. Created 3 years, 9 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 421e8d50d0362b4f19a70b1bf6506d9bc579ecae..45121e86e9f9b8b8d509f7bb5e7992b92c9fc24a 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.screenPosition.x, event.screenPosition.y),
m_movementDelta(flooredIntPoint(event.movementInRootFrame())),
m_positionType(PositionType::Position),
m_button(static_cast<short>(event.button)),

Powered by Google App Engine
This is Rietveld 408576698