| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
|
| index e0896b097faf8f623e0ab52116a4fa38167c3103..066027fc33553846383777e3b4d74cb2bcb6f92b 100644
|
| --- a/chrome/browser/ui/views/frame/browser_view.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_view.cc
|
| @@ -222,15 +222,10 @@ void PaintDetachedBookmarkBar(gfx::Canvas* canvas,
|
| if (ui::MaterialDesignController::IsModeMaterial())
|
| fill_rect.Inset(0, 1, 0, 0);
|
|
|
| - // In detached mode, the bar is meant to overlap with |contents_container_|.
|
| - // The detached background color may be partially transparent, but the layer
|
| - // for |view| must be painted opaquely to avoid subpixel anti-aliasing
|
| - // artifacts, so we recreate the contents container base color here.
|
| + // The detached bar overlaps the |contents_container_| and so uses the same
|
| + // background color (the NTP background color).
|
| canvas->FillRect(fill_rect,
|
| - tp->GetColor(ThemeProperties::COLOR_CONTROL_BACKGROUND));
|
| - canvas->FillRect(
|
| - fill_rect,
|
| - tp->GetColor(ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_BACKGROUND));
|
| + tp->GetColor(ThemeProperties::COLOR_NTP_BACKGROUND));
|
|
|
| // Draw the separators above and below bookmark bar;
|
| // if animating, these are fading in/out.
|
| @@ -2074,7 +2069,7 @@ void BrowserView::InitViews() {
|
|
|
| contents_container_ = new views::View();
|
| contents_container_->set_background(views::Background::CreateSolidBackground(
|
| - GetThemeProvider()->GetColor(ThemeProperties::COLOR_CONTROL_BACKGROUND)));
|
| + GetThemeProvider()->GetColor(ThemeProperties::COLOR_NTP_BACKGROUND)));
|
| contents_container_->AddChildView(devtools_web_view_);
|
| contents_container_->AddChildView(contents_web_view_);
|
| contents_container_->SetLayoutManager(new ContentsLayoutManager(
|
|
|