Index: chrome/browser/ui/views/tabs/tab.cc |
=================================================================== |
--- chrome/browser/ui/views/tabs/tab.cc (revision 111322) |
+++ chrome/browser/ui/views/tabs/tab.cc (working copy) |
@@ -397,8 +397,7 @@ |
SkShader::kClamp_TileMode); |
paint.setShader(shader); |
shader->unref(); |
- hover_canvas.DrawRect(gfx::Rect(x - radius, -radius, radius * 2, radius * 2), |
- paint); |
+ hover_canvas.DrawRectInt(x - radius, -radius, radius * 2, radius * 2, paint); |
// Draw the radial gradient clipped to the background into hover_image. |
SkBitmap hover_image = SkBitmapOperations::CreateMaskedBitmap( |
@@ -578,9 +577,9 @@ |
if (shader) { |
paint.setShader(shader); |
shader->unref(); |
- gfx::Rect paint_rect(hover_point_, gfx::Size()); |
- paint_rect.Inset(-radius, -radius); |
- hover_canvas.DrawRect(paint_rect, paint); |
+ hover_canvas.DrawRectInt(hover_point_.x() - radius, |
+ hover_point_.y() - radius, |
+ radius * 2, radius * 2, paint); |
} |
return hover_canvas.ExtractBitmap(); |
} |