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

Unified Diff: ui/views/animation/ink_drop.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/animation/ink_drop.cc
diff --git a/ui/views/animation/ink_drop.cc b/ui/views/animation/ink_drop.cc
index a82f4c51b5b78c653a9e49e63e934d9b5f590c22..6a1df9896c7f074d76645933d291b1ae052497c6 100644
--- a/ui/views/animation/ink_drop.cc
+++ b/ui/views/animation/ink_drop.cc
@@ -9,7 +9,7 @@ namespace views {
InkDropContainerView::InkDropContainerView() {}
void InkDropContainerView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
- SetPaintToLayer(true);
+ SetPaintToLayer();
SetVisible(true);
layer()->SetFillsBoundsOpaquely(false);
layer()->Add(ink_drop_layer);
@@ -18,7 +18,7 @@ void InkDropContainerView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
void InkDropContainerView::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
layer()->Remove(ink_drop_layer);
SetVisible(false);
- SetPaintToLayer(false);
+ DestroyLayer();
}
bool InkDropContainerView::CanProcessEventsWithinSubtree() const {

Powered by Google App Engine
This is Rietveld 408576698