Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/location_bar_view.cc |
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| index 7adaf3fb21df88758a56c51d7105faf07dcd19cf..54d17bed84f24be3c9667050ba78fce82f4f8272 100644 |
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
| @@ -179,7 +179,12 @@ void LocationBarView::Init() { |
| // not prepared for that. |
| DCHECK(GetWidget()); |
| - if (!ui::MaterialDesignController::IsModeMaterial()) { |
| + if (ui::MaterialDesignController::IsModeMaterial()) { |
| + // Make sure children with layers are clipped. |
| + SetPaintToLayer(true); |
|
bruthig
2016/02/24 17:02:58
Calling SetPaintToLayer(true) causes the View to c
Evan Stade
2016/02/24 23:14:17
done. (Only two spots use this technique AFAIK ---
|
| + SetFillsBoundsOpaquely(false); |
| + layer()->SetMasksToBounds(true); |
| + } else { |
|
Peter Kasting
2016/02/24 01:46:08
Nit: Can combine this else with subsequent if and
Evan Stade
2016/02/24 23:14:18
Done.
|
| if (is_popup_mode_) { |
| const int kOmniboxPopupBorderImages[] = |
| IMAGE_GRID(IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW); |