summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/tabs
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 20:20:05 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 20:20:05 +0000
commit55a0ffd864ee04c0b76cbed90cb7f00aabed1192 (patch)
tree273b8b46bdd8b2fd7974d6f93802f9fa5fbbd79b /chrome/browser/views/tabs
parent4fa172e6dbd06f6e2c09d51ce4c7cfd9bb2def89 (diff)
downloadchromium_src-55a0ffd864ee04c0b76cbed90cb7f00aabed1192.zip
chromium_src-55a0ffd864ee04c0b76cbed90cb7f00aabed1192.tar.gz
chromium_src-55a0ffd864ee04c0b76cbed90cb7f00aabed1192.tar.bz2
Convert FillRect(... SkPaint) to DrawRect() since it doesn't necessarily fill, it just draws with the provided paint.
BUG=none TEST=none Review URL: http://codereview.chromium.org/3165032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56589 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs')
-rw-r--r--chrome/browser/views/tabs/tab.cc2
-rw-r--r--chrome/browser/views/tabs/tab_strip.cc3
2 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/views/tabs/tab.cc b/chrome/browser/views/tabs/tab.cc
index 974be4a..7a0ba17 100644
--- a/chrome/browser/views/tabs/tab.cc
+++ b/chrome/browser/views/tabs/tab.cc
@@ -418,7 +418,7 @@ void Tab::PaintInactiveTabBackgroundWithTitleChange(gfx::Canvas* canvas) {
SkShader::kClamp_TileMode);
paint.setShader(shader);
shader->unref();
- hover_canvas.FillRectInt(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(
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc
index b46bbcac..adb1d6a 100644
--- a/chrome/browser/views/tabs/tab_strip.cc
+++ b/chrome/browser/views/tabs/tab_strip.cc
@@ -335,8 +335,7 @@ void TabStrip::PaintChildren(gfx::Canvas* canvas) {
paint.setColor(SkColorSetARGB(200, 255, 255, 255));
paint.setXfermodeMode(SkXfermode::kDstIn_Mode);
paint.setStyle(SkPaint::kFill_Style);
- canvas->FillRectInt(
- 0, 0, width(),
+ canvas->DrawRectInt(0, 0, width(),
height() - 2, // Visible region that overlaps the toolbar.
paint);
}