diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 20:02:07 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 20:02:07 +0000 |
commit | e296bed56a43c1aac9204e86976fcfc91c8e9631 (patch) | |
tree | 4f8f97fb074693b475ae145d8f337b9369969bf5 /chrome/browser/views/frame | |
parent | 98d8f5ca944a12014f930165f403d56aa39cd39b (diff) | |
download | chromium_src-e296bed56a43c1aac9204e86976fcfc91c8e9631.zip chromium_src-e296bed56a43c1aac9204e86976fcfc91c8e9631.tar.gz chromium_src-e296bed56a43c1aac9204e86976fcfc91c8e9631.tar.bz2 |
Make the inactive tab background line up with the parent without using magic numbers.
BUG=12761
TEST=Verify that the inactive tab background lines up with the frame image in maximized and unmaximized mode - you will need a heavily patterned theme to test with.
Review URL: http://codereview.chromium.org/118221
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index d122af1..7adbbc5 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -1406,6 +1406,8 @@ void BrowserView::InitSystemMenu() { int BrowserView::LayoutTabStrip() { gfx::Rect tabstrip_bounds = frame_->GetBoundsForTabStrip(tabstrip_); + tabstrip_->SetBackgroundOffset( + gfx::Point(tabstrip_bounds.x(), tabstrip_bounds.y())); gfx::Point tabstrip_origin = tabstrip_bounds.origin(); ConvertPointToView(GetParent(), this, &tabstrip_origin); tabstrip_bounds.set_origin(tabstrip_origin); |