summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_bar_view.cc
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 17:14:12 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-09 17:14:12 +0000
commit793b6b13899d674a47b86943ab4ba3b3ae82fe83 (patch)
tree06c5299431c692b1f26b1527e3686d08c6d7a545 /chrome/browser/views/bookmark_bar_view.cc
parent2e4633c5b2a040357659646b951b632bff3055f5 (diff)
downloadchromium_src-793b6b13899d674a47b86943ab4ba3b3ae82fe83.zip
chromium_src-793b6b13899d674a47b86943ab4ba3b3ae82fe83.tar.gz
chromium_src-793b6b13899d674a47b86943ab4ba3b3ae82fe83.tar.bz2
Make the toolbar theme align with the left edge of the browser and the top edge of the tab strip.
BUG=none TEST=install a theme with lines across the toolbar and frame, and verify that the lines line up across the frame,toolbar,bookmarks bar and find bar. Review URL: http://codereview.chromium.org/155124 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20269 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_bar_view.cc')
-rw-r--r--chrome/browser/views/bookmark_bar_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc
index a9ca39b..5cc5091 100644
--- a/chrome/browser/views/bookmark_bar_view.cc
+++ b/chrome/browser/views/bookmark_bar_view.cc
@@ -626,10 +626,10 @@ void BookmarkBarView::Paint(gfx::Canvas* canvas) {
} else {
gfx::Rect bounds = GetBounds(views::View::APPLY_MIRRORING_TRANSFORMATION);
- // +1 is for toolbar outdent.
canvas->TileImageInt(*GetThemeProvider()->
GetBitmapNamed(IDR_THEME_TOOLBAR),
- bounds.x() + 1, bounds.y(), 0, 0, width(), height());
+ GetParent()->GetBounds(views::View::APPLY_MIRRORING_TRANSFORMATION).x()
+ + bounds.x(), bounds.y(), 0, 0, width(), height());
canvas->FillRectInt(ResourceBundle::toolbar_separator_color,
0, height() - 1, width(), 1);
}