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

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

Issue 9021046: Pass const gfx::Rect& as the first parameter to FillRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more fix Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/views/notifications/balloon_view.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5b0a274ab29d144fb9a1f1da63942aecb1380244..08111bc30d8597a59164bd139b346b15f9b7ff7b 100644
--- a/chrome/browser/ui/views/tabs/dragged_tab_view.cc
+++ b/chrome/browser/ui/views/tabs/dragged_tab_view.cc
@@ -141,14 +141,14 @@ void DraggedTabView::PaintDetachedView(gfx::Canvas* canvas) {
bitmap_device.eraseARGB(0, 0, 0, 0);
int tab_height = renderer_bounds_.back().height();
- scale_canvas.FillRect(kDraggedTabBorderColor,
- gfx::Rect(0, tab_height - kDragFrameBorderSize,
- ps.width(), ps.height() - tab_height));
+ scale_canvas.FillRect(gfx::Rect(0, tab_height - kDragFrameBorderSize,
+ ps.width(), ps.height() - tab_height),
+ kDraggedTabBorderColor);
gfx::Rect image_rect(kDragFrameBorderSize,
tab_height,
ps.width() - kTwiceDragFrameBorderSize,
contents_size_.height());
- scale_canvas.FillRect(SK_ColorBLACK, image_rect);
+ scale_canvas.FillRect(image_rect, SK_ColorBLACK);
photobooth_->PaintScreenshotIntoCanvas(&scale_canvas, image_rect);
for (size_t i = 0; i < renderers_.size(); ++i)
renderers_[i]->Paint(&scale_canvas);
« no previous file with comments | « chrome/browser/ui/views/notifications/balloon_view.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698