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

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

Issue 2360803002: Remove some pre-MD code from toolbar/tabstrip/frame. (Closed)
Patch Set: pkasting review Created 4 years, 3 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_unittest.cc » ('j') | 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 0e09237e2d72b9d9170734294d03b7f6c2a2c2a2..d0fb9bc054349826db71315d5ab3e3e7389a327d 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -527,8 +527,7 @@ void NewTabButton::PaintFill(bool pressed,
const int bg_id = tab_strip_->GetBackgroundResourceId(&custom_image);
// 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 = tp->HasCustomImage(bg_id) ?
- -GetLayoutConstant(TAB_TOP_EXCLUSION_HEIGHT) : background_offset_.y();
+ const int offset_y = tp->HasCustomImage(bg_id) ? 0 : 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.
float x_scale = 1.0f;
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.cc ('k') | chrome/browser/ui/views/tabs/tab_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698