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

Unified Diff: webkit/glue/webcursor_aurax11.cc

Issue 11369144: ui: Make gfx::Point::Scale() mutate the class, similar to gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for aura Created 8 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: webkit/glue/webcursor_aurax11.cc
diff --git a/webkit/glue/webcursor_aurax11.cc b/webkit/glue/webcursor_aurax11.cc
index 584e3ef1f510ea8b18d895bf9bca6bde69fd89b9..d6e01afe9cd3131ed3cd168ffd6760789e6e8333 100644
--- a/webkit/glue/webcursor_aurax11.cc
+++ b/webkit/glue/webcursor_aurax11.cc
@@ -36,9 +36,9 @@ const ui::PlatformCursor WebCursor::GetPlatformCursor() {
skia::ImageOperations::RESIZE_BETTER,
scaled_size.width(),
scaled_size.height());
- image = ui::SkBitmapToXcursorImage(&scaled_bitmap,
- gfx::ToFlooredPoint(
- hotspot_.Scale(scale_factor_)));
+ gfx::Point hotspot_point = gfx::ToFlooredPoint(
+ gfx::ScalePoint(hotspot_, scale_factor_));
+ image = ui::SkBitmapToXcursorImage(&scaled_bitmap, hotspot_point);
}
platform_cursor_ = ui::CreateReffedCustomXCursor(image);
return platform_cursor_;

Powered by Google App Engine
This is Rietveld 408576698