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

Unified Diff: Source/web/WebInputEventConversion.cpp

Issue 149053002: Blink WebTouchPoint stores its location as WebFloatPoint, instead of WebPoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Rebase / minor fixes. Created 6 years, 11 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: Source/web/WebInputEventConversion.cpp
diff --git a/Source/web/WebInputEventConversion.cpp b/Source/web/WebInputEventConversion.cpp
index 755c16ba790e06f5f0b524e9dee7e2f6084c6ca3..36b26c778c7897a14821fc753b556a2bedc0fb34 100644
--- a/Source/web/WebInputEventConversion.cpp
+++ b/Source/web/WebInputEventConversion.cpp
@@ -407,7 +407,7 @@ PlatformTouchPointBuilder::PlatformTouchPointBuilder(Widget* widget, const WebTo
m_id = point.id;
m_state = toPlatformTouchPointState(point.state);
m_pos = widget->convertFromContainingWindow(IntPoint((point.position.x - offset.width()) / scale, (point.position.y - offset.height()) / scale));
- m_screenPos = point.screenPosition;
+ m_screenPos = IntPoint(point.screenPosition.x, point.screenPosition.y);
m_radiusY = point.radiusY / scale;
m_radiusX = point.radiusX / scale;
m_rotationAngle = point.rotationAngle;
@@ -704,7 +704,7 @@ static void addTouchPoints(const Widget* widget, const AtomicString& touchType,
WebTouchPoint point;
point.id = touch->identifier();
- point.screenPosition = WebPoint(touch->screenX(), touch->screenY());
+ point.screenPosition = WebFloatPoint(touch->screenX(), touch->screenY());
point.position = convertAbsoluteLocationForRenderObject(touch->absoluteLocation(), *renderObject);
point.radiusX = touch->webkitRadiusX();
point.radiusY = touch->webkitRadiusY();

Powered by Google App Engine
This is Rietveld 408576698