summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/tabs/dragged_tab_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/tabs/dragged_tab_gtk.cc')
-rw-r--r--chrome/browser/gtk/tabs/dragged_tab_gtk.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/gtk/tabs/dragged_tab_gtk.cc b/chrome/browser/gtk/tabs/dragged_tab_gtk.cc
index 81012eb..8e829ec 100644
--- a/chrome/browser/gtk/tabs/dragged_tab_gtk.cc
+++ b/chrome/browser/gtk/tabs/dragged_tab_gtk.cc
@@ -292,11 +292,10 @@ void DraggedTabGtk::PaintScreenshotIntoCanvas(gfx::Canvas* canvas,
if (!backing_store_)
return;
- gfx::Rect rect(0, 0,
- contents_->allocation.width, contents_->allocation.height);
+ gfx::Rect rect(0, 0, target_bounds.width(), target_bounds.height());
SkBitmap bitmap = backing_store_->PaintRectToBitmap(rect);
if (!bitmap.isNull())
- canvas->DrawBitmapInt(bitmap, 0, renderer_->bounds().height());
+ canvas->DrawBitmapInt(bitmap, target_bounds.x(), target_bounds.y());
}
// static