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

Unified Diff: ash/common/shelf/app_list_button.cc

Issue 2510633004: Revert of Take size in ink drop masks instead of bounds (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | ash/common/system/tray/tray_background_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/app_list_button.cc
diff --git a/ash/common/shelf/app_list_button.cc b/ash/common/shelf/app_list_button.cc
index 8ef16a1dbc5c4a173d720cd9fc04370100c2c8ef..93cfaa689ebaf6425ec54dc3f54abe35fccce3f6 100644
--- a/ash/common/shelf/app_list_button.cc
+++ b/ash/common/shelf/app_list_button.cc
@@ -281,8 +281,8 @@
}
std::unique_ptr<views::InkDropMask> AppListButton::CreateInkDropMask() const {
- return base::MakeUnique<views::CircleInkDropMask>(size(), GetCenterPoint(),
- kAppListButtonRadius);
+ return base::MakeUnique<views::CircleInkDropMask>(
+ GetLocalBounds(), GetCenterPoint(), kAppListButtonRadius);
}
void AppListButton::SetDrawBackgroundAsActive(bool draw_background_as_active) {
« no previous file with comments | « no previous file | ash/common/system/tray/tray_background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698