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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm

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
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm
index fa25be9e33aff0a7be0f0cdbc2bbd62f1c0fdb57..847d4e6f79d692dbef7f05807e28141a35a2c6ac 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mac.mm
@@ -143,13 +143,11 @@ void BrowserNonClientFrameViewMac::PaintToolbarBackground(gfx::Canvas* canvas) {
const ui::ThemeProvider* tp = GetThemeProvider();
gfx::ImageSkia* border = tp->GetImageSkiaNamed(IDR_TOOLBAR_SHADE_TOP);
- const int top_inset =
- GetLayoutConstant(TABSTRIP_TOOLBAR_OVERLAP) - border->height();
const int x = bounds.x();
- const int y = bounds.y() + top_inset;
+ const int y = bounds.y() - border->height();
const int w = bounds.width();
- const int h = bounds.height() - top_inset;
+ const int h = bounds.height() + border->height();
// The tabstrip border image height is 2*scale pixels, but only the bottom 2
// pixels contain the actual border (the rest is transparent). We can't draw

Powered by Google App Engine
This is Rietveld 408576698