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

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

Issue 2094343005: Fix MD button hover shadow effect on odd-sized buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 cb593cf7539acc16e86efab2742901e860493bd0..0979be6bfc5193bfacf3686a5ed71c9ce4bef2c2 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -453,10 +453,11 @@ std::unique_ptr<views::InkDropHighlight> LabelButton::CreateInkDropHighlight()
return nullptr;
return GetText().empty()
? CreateDefaultInkDropHighlight(
- image()->GetMirroredBounds().CenterPoint())
+ gfx::RectF(image()->GetMirroredBounds()).CenterPoint())
: base::WrapUnique(new views::InkDropHighlight(
size(), kInkDropSmallCornerRadius,
- GetLocalBounds().CenterPoint(), GetInkDropBaseColor()));
+ gfx::RectF(GetLocalBounds()).CenterPoint(),
+ GetInkDropBaseColor()));
}
void LabelButton::StateChanged() {

Powered by Google App Engine
This is Rietveld 408576698