summaryrefslogtreecommitdiffstats
path: root/ui/views/drag_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/drag_utils.cc')
-rw-r--r--ui/views/drag_utils.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc
index 181a599..ae2a3e9 100644
--- a/ui/views/drag_utils.cc
+++ b/ui/views/drag_utils.cc
@@ -47,7 +47,7 @@ void SetURLAndDragImage(const GURL& url,
button.SetBounds(0, 0, prefsize.width(), prefsize.height());
// Render the image.
- gfx::CanvasSkia canvas(prefsize.width(), prefsize.height(), false);
+ gfx::CanvasSkia canvas(prefsize, false);
button.PaintButton(&canvas, views::TextButton::PB_FOR_DRAG);
SetDragImageOnDataObject(canvas, prefsize,
gfx::Point(prefsize.width() / 2, prefsize.height() / 2), data);
@@ -67,7 +67,7 @@ void CreateDragImageForFile(const FilePath& file_name,
// Add +2 here to allow room for the halo.
const int height = font.GetHeight() + icon->height() +
kLinkDragImageVPadding + 2;
- gfx::CanvasSkia canvas(width, height, false /* translucent */);
+ gfx::CanvasSkia canvas(gfx::Size(width, height), false /* translucent */);
// Paint the icon.
canvas.DrawBitmapInt(*icon, (width - icon->width()) / 2, 0);