| Index: content/browser/android/content_view_core_impl.cc
|
| diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
|
| index ad0ed2ce7ef3fad021db30f176c27d2b56243d96..3e88accc662db8ad1f6f54bf6915cb393f38a35b 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -53,6 +53,7 @@
|
| #include "ui/android/view_android.h"
|
| #include "ui/android/window_android.h"
|
| #include "ui/gfx/android/java_bitmap.h"
|
| +#include "ui/gfx/geometry/point_conversions.h"
|
| #include "ui/gfx/geometry/size_conversions.h"
|
| #include "ui/gfx/geometry/size_f.h"
|
| #include "ui/gfx/screen.h"
|
| @@ -799,7 +800,7 @@ void ContentViewCoreImpl::MoveRangeSelectionExtent(const gfx::PointF& extent) {
|
| if (!web_contents_)
|
| return;
|
|
|
| - web_contents_->MoveRangeSelectionExtent(gfx::Point(extent.x(), extent.y()));
|
| + web_contents_->MoveRangeSelectionExtent(gfx::ToRoundedPoint(extent));
|
| }
|
|
|
| void ContentViewCoreImpl::SelectBetweenCoordinates(const gfx::PointF& base,
|
| @@ -807,8 +808,8 @@ void ContentViewCoreImpl::SelectBetweenCoordinates(const gfx::PointF& base,
|
| if (!web_contents_)
|
| return;
|
|
|
| - gfx::Point base_point = gfx::Point(base.x(), base.y());
|
| - gfx::Point extent_point = gfx::Point(extent.x(), extent.y());
|
| + gfx::Point base_point = gfx::ToRoundedPoint(base);
|
| + gfx::Point extent_point = gfx::ToRoundedPoint(extent);
|
| if (base_point == extent_point)
|
| return;
|
|
|
|
|