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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_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/tabs/tab_strip_view.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
index 9748eb055abab91134a23494a1c1488052d29754..e62eb67bf5f72c5c7ceff829e86515ea1a9f2229 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
@@ -56,7 +56,9 @@
if (NSMinY(dirtyRect) < backgroundHeight) {
gfx::ScopedNSGraphicsContextSaveGState scopedGState;
NSGraphicsContext *context = [NSGraphicsContext currentContext];
- [context cr_setPatternPhase:[[self window] themePatternPhase] forView:self];
+ NSPoint phase = [[self window] themePatternPhaseForAlignment:
+ THEME_PATTERN_ALIGN_WITH_TAB_STRIP];
+ [context cr_setPatternPhase:phase forView:self];
// Themes don't have an inactive image so only look for one if there's no
// theme.

Powered by Google App Engine
This is Rietveld 408576698