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

Unified Diff: content/browser/web_contents/touch_editable_impl_aura.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. Created 6 years, 8 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: content/browser/web_contents/touch_editable_impl_aura.cc
diff --git a/content/browser/web_contents/touch_editable_impl_aura.cc b/content/browser/web_contents/touch_editable_impl_aura.cc
index be0addfae67c83d51d9456f7796cdb56313f5fce..aeab27740234626438e362459b40954c2a39b6cc 100644
--- a/content/browser/web_contents/touch_editable_impl_aura.cc
+++ b/content/browser/web_contents/touch_editable_impl_aura.cc
@@ -159,7 +159,8 @@ bool TouchEditableImplAura::HandleInputEvent(const ui::Event* event) {
gfx::Rect focus(selection_focus_rect_.origin(),
gfx::Size(1, selection_focus_rect_.height()));
gfx::Rect selection_rect = gfx::UnionRects(anchor, focus);
- if (selection_rect.Contains(gesture_event->location())) {
+ if (selection_rect.Contains(
+ gfx::ToFlooredPoint(gesture_event->location()))) {
StartTouchEditing();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698