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

Unified Diff: chrome/browser/ui/cocoa/toolbar/toolbar_view.mm

Issue 18486007: Fix the misalignment on CrOS of the tab background images (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/cocoa/toolbar/toolbar_view.mm
diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_view.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_view.mm
index 5b9cb46831e8baea4b751f733287f34ec6fcc715..a4ec3fd40461a17c4f553023e17e55a74aa3d009 100644
--- a/chrome/browser/ui/cocoa/toolbar/toolbar_view.mm
+++ b/chrome/browser/ui/cocoa/toolbar/toolbar_view.mm
@@ -18,9 +18,8 @@
}
- (void)drawRect:(NSRect)rect {
- // The toolbar's background pattern is phased relative to the
- // tab strip view's background pattern.
- NSPoint phase = [[self window] themePatternPhase];
+ NSPoint phase = [[self window]
+ themePatternPhaseForAlignment:THEME_PATTERN_ALIGN_WITH_TAB_STRIP];
[[NSGraphicsContext currentContext] cr_setPatternPhase:phase forView:self];
[self drawBackgroundWithOpaque:YES];
}

Powered by Google App Engine
This is Rietveld 408576698