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

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

Issue 1942843002: Fixed material design ink drop location for the MD download shelf buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Added some missing includes. 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 f5b07e474368a2d8484444a0ed37887ddf5a3ff0..6687b6e03c6a054035745de7ac2a05f6adb7e523 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -10,6 +10,7 @@
#include "base/lazy_instance.h"
#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"
#include "ui/gfx/animation/throb_animation.h"
#include "ui/gfx/canvas.h"
@@ -418,7 +419,8 @@ scoped_ptr<views::InkDropAnimation> LabelButton::CreateInkDropAnimation()
return GetText().empty()
? CustomButton::CreateInkDropAnimation()
: make_scoped_ptr(new views::FloodFillInkDropAnimation(
- size(), GetInkDropCenter(), GetInkDropBaseColor()));
+ GetLocalBounds(), GetInkDropCenter(),
+ GetInkDropBaseColor()));
}
scoped_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