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

Unified Diff: ash/wm/resize_handle_window_targeter.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: ash/wm/resize_handle_window_targeter.cc
diff --git a/ash/wm/resize_handle_window_targeter.cc b/ash/wm/resize_handle_window_targeter.cc
index 28bd0e2ebe5df68821c882592eee566a4b20a019..1bf1efdb6b6ca01b9486bdf90d6a587d341e05a0 100644
--- a/ash/wm/resize_handle_window_targeter.cc
+++ b/ash/wm/resize_handle_window_targeter.cc
@@ -73,7 +73,7 @@ ui::EventTarget* ResizeHandleWindowTargeter::FindTargetForLocatedEvent(
if (!insets.empty()) {
gfx::Rect bounds = gfx::Rect(window_->bounds().size());
bounds.Inset(insets);
- if (!bounds.Contains(event->location()))
+ if (!bounds.Contains(gfx::ToFlooredPoint(event->location())))
return window_;
}
}

Powered by Google App Engine
This is Rietveld 408576698