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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.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: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index e55eb2e077f93eae060943e45e6c22ac6b17bf00..8a9dcd0f7d87ca21d709f5c10266a4c8753ccb67 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -253,7 +253,8 @@ class BookmarkButtonBase : public views::LabelButton {
const gfx::Rect bounds = CalculateInkDropBounds(size());
return base::WrapUnique(new views::InkDropHighlight(
- bounds.size(), 0, bounds.CenterPoint(), GetInkDropBaseColor()));
+ bounds.size(), 0, gfx::RectF(bounds).CenterPoint(),
+ GetInkDropBaseColor()));
}
SkColor GetInkDropBaseColor() const override {
@@ -352,7 +353,8 @@ class BookmarkMenuButtonBase : public views::MenuButton {
const gfx::Rect bounds = CalculateInkDropBounds(size());
return base::WrapUnique(new views::InkDropHighlight(
- bounds.size(), 0, bounds.CenterPoint(), GetInkDropBaseColor()));
+ bounds.size(), 0, gfx::RectF(bounds).CenterPoint(),
+ GetInkDropBaseColor()));
}
SkColor GetInkDropBaseColor() const override {
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_item_view_md.cc » ('j') | ui/views/animation/ink_drop_highlight.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698