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

Unified Diff: chrome/browser/ui/views/status_bubble_views.cc

Issue 792243002: ui: Bubble fix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 6 years 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: chrome/browser/ui/views/status_bubble_views.cc
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index f52073768d9442026c85f0c004fea6dd206fce63..711c0751eccf32d5d8b87ef1a989bacc8a1c02bb 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -400,13 +400,11 @@ void StatusBubbleViews::StatusView::OnPaint(gfx::Canvas* canvas) {
SkRRect rrect;
rrect.setRectRadii(RectToSkRect(rect), (const SkVector*)rad);
- canvas->sk_canvas()->drawRRect(rrect, paint);
+ canvas->sk_canvas()->drawRRect(rrect, shadow_paint);
// Draw the bubble.
- rect.SetRect(SkIntToScalar(kShadowThickness),
- SkIntToScalar(kShadowThickness),
- SkIntToScalar(width),
- SkIntToScalar(height));
+ rect.SetRect(SkIntToScalar(kShadowThickness), SkIntToScalar(kShadowThickness),
+ SkIntToScalar(width - 2), SkIntToScalar(height - 2));
msw 2014/12/12 19:10:09 Should these subtract 2*StatusBubbleViews::kShadow
rrect.setRectRadii(RectToSkRect(rect), (const SkVector*)rad);
canvas->sk_canvas()->drawRRect(rrect, paint);
« 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