Commit e5f13bd6 authored by Jingkui Wang's avatar Jingkui Wang Committed by Commit Bot

High Precision Input for Nacl

Remove the code rounding nacl input event to integers.

BUG=chromium:828486

Change-Id: Icd60c7c8e133e8bd0143712a779feb24059ac62d
Reviewed-on: https://chromium-review.googlesource.com/993152
Commit-Queue: Jingkui Wang <jkwang@google.com>
Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547845}
parent cf5e5473
......@@ -936,11 +936,9 @@ WebTouchEvent WebPluginContainerImpl::TransformTouchEvent(
// Translate the root frame position to content coordinates.
absolute_location = parent.RootFrameToContents(absolute_location);
IntPoint local_point =
RoundedIntPoint(element_->GetLayoutObject()->AbsoluteToLocal(
absolute_location, kUseTransforms));
transformed_event.touches[i].SetPositionInWidget(local_point.X(),
local_point.Y());
FloatPoint local_point = element_->GetLayoutObject()->AbsoluteToLocal(
absolute_location, kUseTransforms);
transformed_event.touches[i].SetPositionInWidget(local_point);
}
return transformed_event;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment