| Index: chrome/browser/ui/views/tabs/tab_strip.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| index a7aa6ba04399b7cf0a34d81efe8544c31a5de639..8a384b6c515d35bb30dc936b82ce154e1d6980fe 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| @@ -426,6 +426,11 @@ gfx::ImageSkia NewTabButton::GetBackgroundImage(
|
| GetThemeProvider()->GetImageSkiaNamed(IDR_NEWTAB_BUTTON_MASK);
|
| int height = mask->height();
|
| int width = mask->width();
|
| +
|
| + // The canvas and mask has to use the same scale factor.
|
| + if (!mask->HasRepresentation(scale_factor))
|
| + scale_factor = ui::SCALE_FACTOR_100P;
|
| +
|
| gfx::Canvas canvas(gfx::Size(width, height), scale_factor, false);
|
|
|
| // For custom images the background starts at the top of the tab strip.
|
|
|