summaryrefslogtreecommitdiffstats
path: root/chrome/browser/drag_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/drag_utils.cc')
-rw-r--r--chrome/browser/drag_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/drag_utils.cc b/chrome/browser/drag_utils.cc
index 5eb1c27..8ba82af 100644
--- a/chrome/browser/drag_utils.cc
+++ b/chrome/browser/drag_utils.cc
@@ -150,7 +150,7 @@ void SetURLAndDragImage(const GURL& url,
button.SetIcon(icon);
}
gfx::Size prefsize = button.GetPreferredSize();
- button.SetBounds(gfx::Point(), prefsize);
+ button.SetBounds(0, 0, prefsize.width(), prefsize.height());
// Render the image.
ChromeCanvas canvas(prefsize.width(), prefsize.height(), false);