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

Unified Diff: ash/common/shelf/shelf_view.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: ash/common/shelf/shelf_view.cc
diff --git a/ash/common/shelf/shelf_view.cc b/ash/common/shelf/shelf_view.cc
index 48458db58ec18c3b5c6ae0b433e18c0a906dce2f..84630378351fd2d3b20b913befee22e498fe8d07 100644
--- a/ash/common/shelf/shelf_view.cc
+++ b/ash/common/shelf/shelf_view.cc
@@ -405,7 +405,7 @@ void ShelfView::Init() {
const ShelfItems& items(model_->items());
for (ShelfItems::const_iterator i = items.begin(); i != items.end(); ++i) {
views::View* child = CreateViewForItem(*i);
- child->SetPaintToLayer(true);
+ child->SetPaintToLayer();
view_model_->Add(child, static_cast<int>(i - items.begin()));
AddChildView(child);
}
@@ -1392,7 +1392,7 @@ std::pair<int, int> ShelfView::GetDragRange(int index) {
}
void ShelfView::ConfigureChildView(views::View* view) {
- view->SetPaintToLayer(true);
+ view->SetPaintToLayer();
view->layer()->SetFillsBoundsOpaquely(false);
}

Powered by Google App Engine
This is Rietveld 408576698