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

Unified Diff: ui/views/animation/ink_drop_host_view.cc

Issue 2709283002: Avoid to change layer type in InkDropHostView::AddInkDropLayer (Closed)
Patch Set: change approach Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_host_view.cc
diff --git a/ui/views/animation/ink_drop_host_view.cc b/ui/views/animation/ink_drop_host_view.cc
index 4d56b362811719b2946030e148d45c7edd21af21..85e62b88d93e8c24f9b4d3efb13a25dc2a5336bd 100644
--- a/ui/views/animation/ink_drop_host_view.cc
+++ b/ui/views/animation/ink_drop_host_view.cc
@@ -127,7 +127,9 @@ InkDropHostView::~InkDropHostView() {
void InkDropHostView::AddInkDropLayer(ui::Layer* ink_drop_layer) {
old_paint_to_layer_ = layer() != nullptr;
- SetPaintToLayer();
+ if (!old_paint_to_layer_)
+ SetPaintToLayer();
+
layer()->SetFillsBoundsOpaquely(false);
ink_drop_mask_ = CreateInkDropMask();
if (ink_drop_mask_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698