diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 23:04:47 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-18 23:04:47 +0000 |
commit | 2ef7e2abebd1d702ff22cac67a0dd7f2660fd875 (patch) | |
tree | 399208d66d24b9b283a7c3d05a10ff28676bcd55 /chrome | |
parent | ea0c98cfa2849f95bf40238c9f476c9cebb22244 (diff) | |
download | chromium_src-2ef7e2abebd1d702ff22cac67a0dd7f2660fd875.zip chromium_src-2ef7e2abebd1d702ff22cac67a0dd7f2660fd875.tar.gz chromium_src-2ef7e2abebd1d702ff22cac67a0dd7f2660fd875.tar.bz2 |
Fix tab strip paint regression for tabs other than the first tab.
X is already offset when we call SetBounds, so we only need to
handle y offset.
Review URL: http://codereview.chromium.org/131073
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rwxr-xr-x | chrome/browser/gtk/tabs/tab_renderer_gtk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc index 95d1360..e024782 100755 --- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc +++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc @@ -518,7 +518,7 @@ void TabRendererGtk::PaintTab(GdkEventExpose* event) { // coordinate [x(), y()]. Additionally, the parent widget is windowless, and // it has an offset of event->area. Translate by these offsets so we can // render at (0,0) to match windows rendering metrics. - canvas.TranslateInt(x() + event->area.x, y() + event->area.y); + canvas.TranslateInt(x(), y() + event->area.y); Paint(&canvas); } |