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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 2832223003: Update profile switcher button on Linux. (Closed)
Patch Set: self review Created 3 years, 8 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
« ui/views/animation/ink_drop_mask.cc ('K') | « ui/views/animation/ink_drop_mask.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index d1149469833ecdf21a83b9e23f1581f02b71f0d0..d74fc8dbe0e57ed754635d9d56a23c36747b9e8a 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -423,10 +423,12 @@ void LabelButton::AddInkDropLayer(ui::Layer* ink_drop_layer) {
image()->SetPaintToLayer();
image()->layer()->SetFillsBoundsOpaquely(false);
ink_drop_container_->AddInkDropLayer(ink_drop_layer);
+ InstallInkDropMask(ink_drop_layer);
Peter Kasting 2017/04/27 02:13:18 It looks from code search like several other place
Evan Stade 2017/04/27 20:28:52 They would need this if they were to use a mask, b
}
void LabelButton::RemoveInkDropLayer(ui::Layer* ink_drop_layer) {
image()->DestroyLayer();
+ ResetInkDropMask();
ink_drop_container_->RemoveInkDropLayer(ink_drop_layer);
}
« ui/views/animation/ink_drop_mask.cc ('K') | « ui/views/animation/ink_drop_mask.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698