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

Unified Diff: webkit/glue/webcursor_aurax11.cc

Issue 11377068: ui: Make gfx::Size::Scale() mutate the class. Add gfx::ScaleSize() similar to Rect/Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseTOGO 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
« no previous file with comments | « ui/gfx/size_f.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webcursor_aurax11.cc
diff --git a/webkit/glue/webcursor_aurax11.cc b/webkit/glue/webcursor_aurax11.cc
index d6e01afe9cd3131ed3cd168ffd6760789e6e8333..5a910d1d1162f775d6bb46c20932bad2c74b2ecf 100644
--- a/webkit/glue/webcursor_aurax11.cc
+++ b/webkit/glue/webcursor_aurax11.cc
@@ -31,7 +31,7 @@ const ui::PlatformCursor WebCursor::GetPlatformCursor() {
image = ui::SkBitmapToXcursorImage(&bitmap, hotspot_);
} else {
gfx::Size scaled_size = gfx::ToFlooredSize(
- custom_size_.Scale(scale_factor_));
+ gfx::ScaleSize(custom_size_, scale_factor_));
SkBitmap scaled_bitmap = skia::ImageOperations::Resize(bitmap,
skia::ImageOperations::RESIZE_BETTER,
scaled_size.width(),
« no previous file with comments | « ui/gfx/size_f.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698