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

Unified Diff: ash/common/wm/overview/window_grid.cc

Issue 2083023004: [ash-md] Eliminates 1px border around overview mode shield (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Eliminates 1px border around overview mode shield 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/overview/window_grid.cc
diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
index c9ae5c0dd3e42e6a3f164c44b43572fc256f5738..c7c803c9bbf39b2d0a0c52fa6df72451f42beec4 100644
--- a/ash/common/wm/overview/window_grid.cc
+++ b/ash/common/wm/overview/window_grid.cc
@@ -211,10 +211,8 @@ void BackgroundWith1PxBorder::Paint(gfx::Canvas* canvas,
gfx::ScopedCanvas scoped_canvas(canvas);
const float scale = canvas->UndoDeviceScaleFactor();
border_rect_f.Scale(scale);
- if (border_thickness_ > 0) {
- const float inset = border_thickness_ * scale - 0.5f;
- border_rect_f.Inset(inset, inset);
- }
+ const float inset = border_thickness_ * scale - 0.5f;
+ border_rect_f.Inset(inset, inset);
SkPath path;
const SkScalar scaled_corner_radius =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698