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

Unified Diff: content/common/cursors/webcursor_mac.mm

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-event: mandol_line Created 5 years, 1 month 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/common/cursors/webcursor_mac.mm
diff --git a/content/common/cursors/webcursor_mac.mm b/content/common/cursors/webcursor_mac.mm
index be38f789aee9894be3dc648fee216aab7cc68ab2..13c8c0b9c3332a716a5d3668c4dd9102960f0b4c 100644
--- a/content/common/cursors/webcursor_mac.mm
+++ b/content/common/cursors/webcursor_mac.mm
@@ -163,8 +163,8 @@ NSCursor* CreateCustomCursor(const std::vector<char>& custom_data,
custom_scale = 1;
NSSize dip_size = NSSizeFromCGSize(
gfx::ScaleToFlooredSize(custom_size, 1 / custom_scale).ToCGSize());
- NSPoint dip_hotspot = NSPointFromCGPoint(gfx::ToFlooredPoint(
- gfx::ScalePoint(hotspot, 1 / custom_scale)).ToCGPoint());
+ NSPoint dip_hotspot = NSPointFromCGPoint(
+ gfx::ScaleToFlooredPoint(hotspot, 1 / custom_scale).ToCGPoint());
// Both the image and its representation need to have the same size for
// cursors to appear in high resolution on retina displays. Note that the

Powered by Google App Engine
This is Rietveld 408576698