Chromium Code Reviews| 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 92c437decbe72b8d7daead0eb65133ce70bd550d..d6f238f2ff0c66c043804516eb1ebf6e44753407 100644 |
| --- a/chrome/browser/ui/views/status_bubble_views.cc |
| +++ b/chrome/browser/ui/views/status_bubble_views.cc |
| @@ -371,7 +371,13 @@ void StatusBubbleViews::StatusView::OnPaint(gfx::Canvas* canvas) { |
| paint.setAntiAlias(true); |
| SkColor toolbar_color = theme_provider_->GetColor( |
| ThemeProperties::COLOR_TOOLBAR); |
| - paint.setColor(toolbar_color); |
| + // The status bubble is intentionally set to ignore the alpha value of |
| + // toolbar_color, see crbug.com/618278. A partly transparent color with |
| + // subpixel rendering of the text may result in weird font in the status |
| + // bubble. |
|
Peter Kasting
2016/06/22 05:02:30
Changing things here only fixes the status bubble.
|
| + paint.setColor(SkColorSetARGB(SK_AlphaOPAQUE, SkColorGetR(toolbar_color), |
| + SkColorGetG(toolbar_color), |
| + SkColorGetB(toolbar_color))); |
| gfx::Rect popup_bounds = popup_->GetWindowBoundsInScreen(); |