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

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

Issue 1430553004: Correctly align tab and toolbar backgrounds with the frame background. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix errors, better comments Created 5 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/glass_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index dc7d06cee88e3d7f12e6b31c9c277c36831e04fe..c4a9c0daf4416452c12f6b4bba306458dc8ff2e4 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -365,9 +365,10 @@ void GlassBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) {
const int kPreMDToolbarTopEdgeExclusion = 2;
if (browser_view()->IsTabStripVisible())
dest_y += kPreMDToolbarTopEdgeExclusion;
- canvas->TileImageInt(*theme_toolbar, x + GetThemeBackgroundXInset(),
- dest_y - GetTopInset(), x, dest_y, w,
- theme_toolbar->height());
+ canvas->TileImageInt(
+ *theme_toolbar, x + GetThemeBackgroundXInset(),
+ dest_y - GetTopInset() + Tab::GetYOffsetForActiveTabBackground(),
+ x, dest_y, w, theme_toolbar->height());
// Toolbar edges.
if (browser_view()->IsTabStripVisible()) {
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698