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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 1406103006: Also fix new tab button background alignment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 5fe10f19ac6bb2a12ae82e7044e2b11bc1ccb845..46fee491d34e43093e48e07ff9805841ccdcdbc3 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -408,7 +408,7 @@ void NewTabButton::PaintFill(bool pressed,
// For custom tab backgrounds the background starts at the top of the tab
// strip. Otherwise the background starts at the top of the frame.
const int offset_y = theme_provider->HasCustomImage(bg_id) ?
- 0 : background_offset_.y();
+ -GetLayoutConstant(TAB_TOP_EXCLUSION_HEIGHT) : background_offset_.y();
// The new tab background is mirrored in RTL mode, but the theme background
// should never be mirrored. Mirror it here to compensate.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698