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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2066303003: Adjust BackgroundWith1PxBorder corner radius to scale properly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move add inside cast 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 | « chrome/browser/ui/views/location_bar/background_with_1_px_border.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index a494c099e845c1360c662246fdbdd1bae37d88a3..17b87eebd619e60717437c38ae29826d70b0988f 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1271,8 +1271,8 @@ void LocationBarView::OnPaint(gfx::Canvas* canvas) {
paint.setStrokeWidth(1);
gfx::RectF focus_rect(GetLocalBounds());
focus_rect.Inset(gfx::InsetsF(0.5f));
- canvas->DrawRoundRect(focus_rect, BackgroundWith1PxBorder::kCornerRadius,
- paint);
+ canvas->DrawRoundRect(
+ focus_rect, BackgroundWith1PxBorder::kCornerRadius + 0.5f, paint);
}
if (!is_popup_mode_)
return; // The background and border are painted by our Background.
« no previous file with comments | « chrome/browser/ui/views/location_bar/background_with_1_px_border.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698