Chromium Code Reviews| Index: chrome/browser/ui/views/tabs/dragged_tab_view.cc |
| diff --git a/chrome/browser/ui/views/tabs/dragged_tab_view.cc b/chrome/browser/ui/views/tabs/dragged_tab_view.cc |
| index ce196a5c3811200368d6cc0ae608ac790070b7f9..a65e4538c3f5418dde54e007de2da9fe81068dc3 100644 |
| --- a/chrome/browser/ui/views/tabs/dragged_tab_view.cc |
| +++ b/chrome/browser/ui/views/tabs/dragged_tab_view.cc |
| @@ -141,14 +141,15 @@ void DraggedTabView::PaintDetachedView(gfx::Canvas* canvas) { |
| bitmap_device.eraseARGB(0, 0, 0, 0); |
| int tab_height = renderer_bounds_.back().height(); |
| - scale_canvas.FillRectInt(kDraggedTabBorderColor, 0, |
| - tab_height - kDragFrameBorderSize, |
| - ps.width(), ps.height() - tab_height); |
| + scale_canvas.FillRect(kDraggedTabBorderColor, |
| + gfx::Rect(0, tab_height - kDragFrameBorderSize, |
| + ps.width(), ps.height() - tab_height)); |
| int image_x = kDragFrameBorderSize; |
|
Peter Kasting
2011/10/27 19:17:29
Nit: Simpler:
gfx::Rect image_rect(kDragFrameBo
tfarina
2011/10/27 20:46:03
Done.
|
| int image_y = tab_height; |
| int image_w = ps.width() - kTwiceDragFrameBorderSize; |
| int image_h = contents_size_.height(); |
| - scale_canvas.FillRectInt(SK_ColorBLACK, image_x, image_y, image_w, image_h); |
| + scale_canvas.FillRect(SK_ColorBLACK, |
| + gfx::Rect(image_x, image_y, image_w, image_h)); |
| photobooth_->PaintScreenshotIntoCanvas( |
| &scale_canvas, |
| gfx::Rect(image_x, image_y, image_w, image_h)); |