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

Unified Diff: chrome/browser/ui/views/download/download_item_view_md.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/download/download_item_view_md.cc
diff --git a/chrome/browser/ui/views/download/download_item_view_md.cc b/chrome/browser/ui/views/download/download_item_view_md.cc
index 77a1653a199aad189afe9221ed72316286ff85b3..9ebf09d1f404ff7cf418045cf97ce4638ddc0e3f 100644
--- a/chrome/browser/ui/views/download/download_item_view_md.cc
+++ b/chrome/browser/ui/views/download/download_item_view_md.cc
@@ -506,7 +506,8 @@ DownloadItemViewMd::CreateInkDropHighlight() const {
gfx::Size size = GetPreferredSize();
return base::WrapUnique(new views::InkDropHighlight(
- size, kInkDropSmallCornerRadius, gfx::Rect(size).CenterPoint(),
+ size, kInkDropSmallCornerRadius,
+ gfx::RectF(gfx::SizeF(size)).CenterPoint(),
color_utils::DeriveDefaultIconColor(GetTextColor())));
}

Powered by Google App Engine
This is Rietveld 408576698