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

Unified Diff: ui/views/controls/textfield/textfield.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: ui/views/controls/textfield/textfield.cc
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc
index c20ea8179350312aefb84f575098d8f251f65fd5..caeb19f3c25695cc3b5b3fba05939a7049ef0131 100644
--- a/ui/views/controls/textfield/textfield.cc
+++ b/ui/views/controls/textfield/textfield.cc
@@ -1153,8 +1153,8 @@ void Textfield::GetSelectionEndPoints(ui::SelectionBound* anchor,
const gfx::SelectionModel& sel = render_text->selection_model();
gfx::SelectionModel start_sel =
render_text->GetSelectionModelForSelectionStart();
- gfx::Rect r1 = render_text->GetCursorBounds(start_sel, true);
- gfx::Rect r2 = render_text->GetCursorBounds(sel, true);
+ auto r1 = gfx::RectF(render_text->GetCursorBounds(start_sel, true));
+ auto r2 = gfx::RectF(render_text->GetCursorBounds(sel, true));
anchor->SetEdge(r1.origin(), r1.bottom_left());
focus->SetEdge(r2.origin(), r2.bottom_left());

Powered by Google App Engine
This is Rietveld 408576698