summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 02:34:33 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-01 02:34:33 +0000
commitc4e678d0902b04606ff2a21714e33643d01a74ed (patch)
tree914cf415a90e28c27c947d11f528ad187b22880e /chrome/browser/ui/views
parentd9d52b37bf4a0f12bd497c89893cc11225e56418 (diff)
downloadchromium_src-c4e678d0902b04606ff2a21714e33643d01a74ed.zip
chromium_src-c4e678d0902b04606ff2a21714e33643d01a74ed.tar.gz
chromium_src-c4e678d0902b04606ff2a21714e33643d01a74ed.tar.bz2
Speculative fix for throbber showing on all tabs.
BUG=69528 TEST=none Review URL: http://codereview.chromium.org/6596057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76341 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views')
-rw-r--r--chrome/browser/ui/views/tabs/base_tab.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/tabs/base_tab.cc b/chrome/browser/ui/views/tabs/base_tab.cc
index f5c063f..336601f 100644
--- a/chrome/browser/ui/views/tabs/base_tab.cc
+++ b/chrome/browser/ui/views/tabs/base_tab.cc
@@ -82,10 +82,14 @@ void DrawIconCenter(gfx::Canvas* canvas,
// Center the image within bounds.
int dst_x = bounds.x() - (icon_width - bounds.width()) / 2;
int dst_y = bounds.y() - (icon_height - bounds.height()) / 2;
+ // NOTE: the clipping is a work around for 69528, it shouldn't be necessary.
+ canvas->Save();
+ canvas->ClipRectInt(dst_x, dst_y, icon_width, icon_height);
canvas->DrawBitmapInt(image,
image_offset, 0, icon_width, icon_height,
dst_x, dst_y, icon_width, icon_height,
filter);
+ canvas->Restore();
}
} // namespace