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

Unified Diff: content/browser/renderer_host/input/touch_selection_controller_client_aura.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-gfx: . Created 5 years, 3 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/renderer_host/input/touch_selection_controller_client_aura.cc
diff --git a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
index ada3e9f2fc7549240bf0d1d5061a92a562044e58..c47605c2535a685d5c62ffbc8bc24e4a66535351 100644
--- a/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
+++ b/content/browser/renderer_host/input/touch_selection_controller_client_aura.cc
@@ -165,7 +165,7 @@ void TouchSelectionControllerClientAura::ShowQuickMenu() {
// bounds.
gfx::PointF origin = rect.origin();
gfx::PointF bottom_right = rect.bottom_right();
- gfx::Rect client_bounds = rwhva_->GetNativeView()->bounds();
+ auto client_bounds = gfx::RectF(rwhva_->GetNativeView()->bounds());
origin.SetToMax(client_bounds.origin());
bottom_right.SetToMin(client_bounds.bottom_right());
if (origin.x() > bottom_right.x() || origin.y() > bottom_right.y())

Powered by Google App Engine
This is Rietveld 408576698