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

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

Issue 2639203007: Update SetPaintToLayer to accept LayerType (Closed)
Patch Set: Refactor 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..f4c2a290d0ab758cfaeeb4fada35f3e44860c778 100644
--- a/chrome/browser/ui/views/dropdown_bar_host.cc
+++ b/chrome/browser/ui/views/dropdown_bar_host.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/ui/views/dropdown_bar_host_delegate.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/theme_copying_widget.h"
+#include "ui/compositor/layer_type.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/gfx/animation/slide_animation.h"
#include "ui/gfx/scrollbar_size.h"
@@ -43,7 +44,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(ui::LAYER_TEXTURED);
clip_view->layer()->SetFillsBoundsOpaquely(false);
clip_view->layer()->SetMasksToBounds(true);
clip_view->AddChildView(view_);

Powered by Google App Engine
This is Rietveld 408576698