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)) { |