Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3817)

Unified Diff: chrome/browser/ui/views/frame/browser_view_layout.cc

Issue 10816004: Fixes missing 5 pixel inset for theme background in Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_view_layout.cc
diff --git a/chrome/browser/ui/views/frame/browser_view_layout.cc b/chrome/browser/ui/views/frame/browser_view_layout.cc
index 0bc08d4091cc254c03e698787ed3f9ba75f5533b..d953a2de696f3330372522f3c5f5004506619b70 100644
--- a/chrome/browser/ui/views/frame/browser_view_layout.cc
+++ b/chrome/browser/ui/views/frame/browser_view_layout.cc
@@ -257,8 +257,9 @@ void BrowserViewLayout::Layout(views::View* host) {
vertical_layout_rect_ = browser_view_->GetLocalBounds();
int top = LayoutTabStripRegion();
if (browser_view_->IsTabStripVisible()) {
- tabstrip_->SetBackgroundOffset(gfx::Point(
- tabstrip_->GetMirroredX() + browser_view_->GetMirroredX(),
+ int x = tabstrip_->GetMirroredX() + browser_view_->GetMirroredX() +
+ browser_view_->frame()->GetThemeBackgroundXInset();
+ tabstrip_->SetBackgroundOffset(gfx::Point(x,
browser_view_->frame()->GetTabStripInsets(false).top));
}
top = LayoutToolbar(top);
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/glass_browser_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698