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

Unified Diff: chrome/browser/ui/views/tabs/dragged_tab_view.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months 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
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));

Powered by Google App Engine
This is Rietveld 408576698