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_; |