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

Unified Diff: ui/views/border.cc

Issue 1105563003: Draw a 2pt white stroke around selection rectangle in overview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« ash/wm/overview/window_grid.cc ('K') | « ash/wm/overview/window_grid.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/border.cc
diff --git a/ui/views/border.cc b/ui/views/border.cc
index 6e28cafb884debe05c05f5a638e179f3062f637f..ed024762374e51f740383b55a76341e17fdf58c3 100644
--- a/ui/views/border.cc
+++ b/ui/views/border.cc
@@ -44,13 +44,15 @@ void SidedSolidBorder::Paint(const View& view, gfx::Canvas* canvas) {
// Top border.
canvas->FillRect(gfx::Rect(0, 0, view.width(), insets_.top()), color_);
// Left border.
- canvas->FillRect(gfx::Rect(0, 0, insets_.left(), view.height()), color_);
+ canvas->FillRect(gfx::Rect(0, insets_.top(), insets_.left(),
+ view.height() - insets_.height()), color_);
// Bottom border.
canvas->FillRect(gfx::Rect(0, view.height() - insets_.bottom(), view.width(),
insets_.bottom()), color_);
// Right border.
- canvas->FillRect(gfx::Rect(view.width() - insets_.right(), 0, insets_.right(),
- view.height()), color_);
+ canvas->FillRect(gfx::Rect(view.width() - insets_.right(), insets_.top(),
+ insets_.right(), view.height() - insets_.height()),
+ color_);
}
gfx::Insets SidedSolidBorder::GetInsets() const {
« ash/wm/overview/window_grid.cc ('K') | « ash/wm/overview/window_grid.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698