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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host.cc

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: fix comments Created 3 years, 11 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/ui/views/dropdown_bar_host.cc
diff --git a/chrome/browser/ui/views/dropdown_bar_host.cc b/chrome/browser/ui/views/dropdown_bar_host.cc
index d954866fe66bfdbdc71c3306ac42a3d8ac5ee92b..5a4d93b8218eee8e028960de45e776c786494f86 100644
--- a/chrome/browser/ui/views/dropdown_bar_host.cc
+++ b/chrome/browser/ui/views/dropdown_bar_host.cc
@@ -43,7 +43,7 @@ void DropdownBarHost::Init(views::View* host_view,
// The |clip_view| exists to paint to a layer so that it can clip descendent
// Views which also paint to a Layer. See http://crbug.com/589497
std::unique_ptr<views::View> clip_view(new views::View());
- clip_view->SetPaintToLayer(true);
+ clip_view->SetPaintToLayer();
clip_view->layer()->SetFillsBoundsOpaquely(false);
clip_view->layer()->SetMasksToBounds(true);
clip_view->AddChildView(view_);

Powered by Google App Engine
This is Rietveld 408576698