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

Unified Diff: ui/views/controls/combobox/combobox.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: ui/views/controls/combobox/combobox.cc
diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
index 42b79d9f88e5c9431379a01e993b6bcae7ddba9d..7dff005bea9b5d6369a6178dedf097ed6fc356d9 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -442,7 +442,7 @@ Combobox::Combobox(ui::ComboboxModel* model, Style style)
// A layer is applied to make sure that canvas bounds are snapped to pixel
// boundaries (for the sake of drawing the arrow).
if (UseMd()) {
- SetPaintToLayer(true);
+ SetPaintToLayer();
layer()->SetFillsBoundsOpaquely(false);
} else {
arrow_image_ = PlatformStyle::CreateComboboxArrow(enabled(), style);

Powered by Google App Engine
This is Rietveld 408576698