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

Unified Diff: chrome/browser/ui/views/infobars/infobar_background.cc

Issue 8405002: ui/gfx: Convert Canvas::FillRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: save some vertical space, interactive_ui_tests are fixed by Peter's fix 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/infobars/infobar_background.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_background.cc b/chrome/browser/ui/views/infobars/infobar_background.cc
index 151c5196142b5b0ba10915175330479beb5060ce..d345fa528dc102b157280d83bfefcb8b6c8792b7 100644
--- a/chrome/browser/ui/views/infobars/infobar_background.cc
+++ b/chrome/browser/ui/views/infobars/infobar_background.cc
@@ -6,10 +6,10 @@
#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/ui/views/infobars/infobar_view.h"
+#include "third_party/skia/include/effects/SkGradientShader.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/canvas_skia_paint.h"
#include "ui/gfx/color_utils.h"
-#include "third_party/skia/include/effects/SkGradientShader.h"
#include "views/view.h"
InfoBarBackground::InfoBarBackground(InfoBarDelegate::Type infobar_type)
@@ -57,7 +57,7 @@ void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
paint.setAntiAlias(false);
// Now draw the separator at the bottom.
- canvas->FillRectInt(separator_color_, 0,
- view->height() - InfoBar::kSeparatorLineHeight,
- view->width(), InfoBar::kSeparatorLineHeight);
+ canvas->FillRect(separator_color_,
+ gfx::Rect(0, view->height() - InfoBar::kSeparatorLineHeight,
+ view->width(), InfoBar::kSeparatorLineHeight));
}
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698