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

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

Issue 1800373002: [MD] replace infobar bottom solid line separator with a shadow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 9 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
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container_view.cc ('k') | ui/gfx/skia_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index 390c7aa2cf0dcb0f9f37f243ba065dfefa1a8a30..b0012dc05b02af4bc2c6072ce4d2f8a461c50246 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -89,10 +89,10 @@ InfoBarView::InfoBarView(scoped_ptr<infobars::InfoBarDelegate> delegate)
AddChildView(child_container_);
- if (ui::MaterialDesignController::IsModeMaterial()) {
- SetPaintToLayer(true);
- layer()->SetFillsBoundsOpaquely(false);
+ SetPaintToLayer(true);
+ layer()->SetFillsBoundsOpaquely(false);
+ if (ui::MaterialDesignController::IsModeMaterial()) {
child_container_->SetPaintToLayer(true);
child_container_->layer()->SetMasksToBounds(true);
// Since MD doesn't use a gradient, we can set a solid bg color.
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_container_view.cc ('k') | ui/gfx/skia_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698