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

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

Issue 2533053002: Handle view resize for ripple (Closed)
Patch Set: Addressed review comments Created 4 years, 1 month 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/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index e33b7b07585aad0811480eda2d1844dd234035a3..03738f883802bfe35e3d00636ae559ae0e8e2475 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -440,7 +440,7 @@ std::unique_ptr<InkDrop> LabelButton::CreateInkDrop() {
std::unique_ptr<views::InkDropRipple> LabelButton::CreateInkDropRipple() const {
return UseFloodFillInkDrop()
? base::MakeUnique<views::FloodFillInkDropRipple>(
- GetLocalBounds(), GetInkDropCenterBasedOnLastEvent(),
+ size(), GetInkDropCenterBasedOnLastEvent(),
GetInkDropBaseColor(), ink_drop_visible_opacity())
: CreateDefaultInkDropRipple(
image()->GetMirroredBounds().CenterPoint());

Powered by Google App Engine
This is Rietveld 408576698