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

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

Issue 1915983009: Fixed material design ink drop location for the MD download shelf buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "Removed FloodFillInkDropAnimation ctor. Created 4 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
« no previous file with comments | « ui/views/animation/ink_drop_animation_unittest.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 49f741fac6dac8f5f13549e028f5511cb0420183..8cb26b7d9c10fcbfb30e38a2b6891346b6831cf3 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -424,7 +424,8 @@ std::unique_ptr<views::InkDropAnimation> LabelButton::CreateInkDropAnimation()
return GetText().empty()
? CustomButton::CreateInkDropAnimation()
: base::WrapUnique(new views::FloodFillInkDropAnimation(
- size(), GetInkDropCenter(), GetInkDropBaseColor()));
+ GetLocalBounds(), GetInkDropCenter(),
+ GetInkDropBaseColor()));
}
std::unique_ptr<views::InkDropHover> LabelButton::CreateInkDropHover() const {
« no previous file with comments | « ui/views/animation/ink_drop_animation_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698