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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_view.mm

Issue 2336453002: BackgroundGradientView: -drawBackground: → -drawRect: (Closed)
Patch Set: Put this back. 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/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 2329650aa54f457d6daf25a517b8faa527c83809..6f97ac33350f2bb7b8ffc20345c0281be6adf44b 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_view.mm
@@ -66,7 +66,7 @@
NSRect backgroundRect = [self bounds];
backgroundRect.size.height = 2 * [self cr_lineWidth];
if (NSIntersectsRect(backgroundRect, dirtyRect))
- [self drawBackground:backgroundRect];
+ [super drawRect:backgroundRect];
// Draw the border bitmap, which is partially transparent.
NSImage* image = themeProvider->GetNSImageNamed(IDR_TOOLBAR_SHADE_TOP);
@@ -90,7 +90,7 @@
NSRect backgroundRect = [self bounds];
backgroundRect.size.height = [self cr_lineWidth];
if (NSIntersectsRect(backgroundRect, dirtyRect)) {
- [self drawBackground:backgroundRect];
+ [super drawRect:backgroundRect];
}
// Pre-MD the IDR_TOOLBAR_SHADE_TOP image would lay down a light highlight
« no previous file with comments | « chrome/browser/ui/cocoa/find_bar/find_bar_view_cocoa.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698