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

Unified Diff: content/renderer/disambiguation_popup_helper.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-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/renderer/disambiguation_popup_helper.cc
diff --git a/content/renderer/disambiguation_popup_helper.cc b/content/renderer/disambiguation_popup_helper.cc
index de17eb2289b6d92e6a1b9b2141d8513626b5b475..3bcd8a5d7c489ebf66ef4c752a26ebf7c8ddba0b 100644
--- a/content/renderer/disambiguation_popup_helper.cc
+++ b/content/renderer/disambiguation_popup_helper.cc
@@ -68,7 +68,7 @@ gfx::Rect CropZoomArea(const gfx::Rect& zoom_rect,
gfx::Size max_size = viewport_size;
max_size.Enlarge(-2 * kDisambiguationPopupBoundsMargin,
-2 * kDisambiguationPopupBoundsMargin);
- max_size = ToCeiledSize(ScaleSize(max_size, 1.0 / scale));
+ max_size = gfx::ScaleToCeiledSize(max_size, 1.0 / scale);
int left = touch_point.x() - zoom_rect.x();
int right = zoom_rect.right() - touch_point.x();
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | content/renderer/disambiguation_popup_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698