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

Unified Diff: chrome/browser/ntp_background_util.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/ntp_background_util.cc
diff --git a/chrome/browser/ntp_background_util.cc b/chrome/browser/ntp_background_util.cc
index 5dc0d6f50b81cd2475fd00dbc40f1303f139c008..96496f598f1f72db441f13dd06b24b1339016332 100644
--- a/chrome/browser/ntp_background_util.cc
+++ b/chrome/browser/ntp_background_util.cc
@@ -56,17 +56,16 @@ void PaintThemeBackground(
} // namespace
// static
-void NtpBackgroundUtil::PaintBackgroundDetachedMode(
- ui::ThemeProvider* tp, gfx::Canvas* canvas, const gfx::Rect& area,
- int tab_contents_height) {
+void NtpBackgroundUtil::PaintBackgroundDetachedMode(ui::ThemeProvider* tp,
+ gfx::Canvas* canvas,
+ const gfx::Rect& area,
+ int tab_contents_height) {
// Draw the background to match the new tab page.
- canvas->FillRectInt(tp->GetColor(ThemeService::COLOR_NTP_BACKGROUND),
- area.x(), area.y(), area.width(), area.height());
+ canvas->FillRect(tp->GetColor(ThemeService::COLOR_NTP_BACKGROUND), area);
if (tp->HasCustomImage(IDR_THEME_NTP_BACKGROUND)) {
int tiling = ThemeService::NO_REPEAT;
- tp->GetDisplayProperty(ThemeService::NTP_BACKGROUND_TILING,
- &tiling);
+ tp->GetDisplayProperty(ThemeService::NTP_BACKGROUND_TILING, &tiling);
int alignment;
if (tp->GetDisplayProperty(ThemeService::NTP_BACKGROUND_ALIGNMENT,
&alignment)) {
« no previous file with comments | « chrome/browser/chromeos/status/status_area_button.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698