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

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

Issue 8476019: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 349ef15c22b16d291328ec8eead28904448a9b9a..643c7cc01e732926aac4c7dba0e9da789652333a 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -333,9 +333,9 @@ void TabStrip::PaintChildren(gfx::Canvas* canvas) {
multiple_tabs_selected ? 150 : 200, 255, 255, 255));
paint.setXfermodeMode(SkXfermode::kDstIn_Mode);
paint.setStyle(SkPaint::kFill_Style);
- canvas->DrawRectInt(0, 0, width(),
- height() - 2, // Visible region that overlaps the toolbar.
- paint);
+ canvas->DrawRect(gfx::Rect(0, 0, width(),
+ height() - 2), // Visible region that overlaps the toolbar.
Peter Kasting 2011/11/05 01:10:10 Nit: I'd hoist this comment above the line as "//
tfarina 2011/11/05 02:23:24 Done.
+ paint);
}
// Now selected but not active. We don't want these dimmed if using native

Powered by Google App Engine
This is Rietveld 408576698