| Index: chrome/browser/ui/views/tabs/tab.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
|
| index 82a94065db0bb8e1b9313fe94d42c8d71abb10b8..8df0d5086f111e2408950301c62d45a8d5cfe8ed 100644
|
| --- a/chrome/browser/ui/views/tabs/tab.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab.cc
|
| @@ -402,7 +402,8 @@ void Tab::PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas) {
|
| SkShader::kClamp_TileMode);
|
| paint.setShader(shader);
|
| shader->unref();
|
| - hover_canvas.DrawRectInt(x - radius, -radius, radius * 2, radius * 2, paint);
|
| + hover_canvas.DrawRect(gfx::Rect(x - radius, -radius, radius * 2, radius * 2),
|
| + paint);
|
|
|
| // Draw the radial gradient clipped to the background into hover_image.
|
| SkBitmap hover_image = SkBitmapOperations::CreateMaskedBitmap(
|
| @@ -582,9 +583,9 @@ SkBitmap Tab::DrawHoverGlowBitmap(int width_input, int height_input) {
|
| if (shader) {
|
| paint.setShader(shader);
|
| shader->unref();
|
| - hover_canvas.DrawRectInt(hover_point_.x() - radius,
|
| - hover_point_.y() - radius,
|
| - radius * 2, radius * 2, paint);
|
| + gfx::Rect paint_rect(hover_point_, gfx::Size());
|
| + paint_rect.Inset(-radius, -radius);
|
| + hover_canvas.DrawRect(paint_rect, paint);
|
| }
|
| return hover_canvas.ExtractBitmap();
|
| }
|
|
|