Index: content/shell/renderer/test_runner/EventSender.cpp |
diff --git a/content/shell/renderer/test_runner/EventSender.cpp b/content/shell/renderer/test_runner/EventSender.cpp |
index a81b9edff552a887b05f4d648f907eb687f917e6..3106396a06ded8b290b93545650ab09e2c75cacb 100644 |
--- a/content/shell/renderer/test_runner/EventSender.cpp |
+++ b/content/shell/renderer/test_runner/EventSender.cpp |
@@ -990,8 +990,7 @@ void EventSender::addTouchPoint(const CppArgumentList& arguments, CppVariant* re |
WebTouchPoint touchPoint; |
touchPoint.state = WebTouchPoint::StatePressed; |
- touchPoint.position.x = arguments[0].toInt32(); |
- touchPoint.position.y = arguments[1].toInt32(); |
+ touchPoint.position = WebFloatPoint(arguments[0].toInt32(), arguments[1].toInt32()); |
touchPoint.screenPosition = touchPoint.position; |
if (arguments.size() > 2) { |
@@ -1060,8 +1059,7 @@ void EventSender::updateTouchPoint(const CppArgumentList& arguments, CppVariant* |
WebTouchPoint* touchPoint = &touchPoints[index]; |
touchPoint->state = WebTouchPoint::StateMoved; |
- touchPoint->position.x = arguments[1].toInt32(); |
- touchPoint->position.y = arguments[2].toInt32(); |
+ touchPoint->position = WebFloatPoint(arguments[1].toInt32(), arguments[2].toInt32()); |
touchPoint->screenPosition = touchPoint->position; |
} |