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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm

Issue 2336453002: BackgroundGradientView: -drawBackground: → -drawRect: (Closed)
Patch Set: 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/bookmarks/bookmark_bar_toolbar_view.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
index 02fe283b63f7a5c2f896a4910e5478a7fd69a79f..0064dc5e574f6b370a84d338e569cd6854084204 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm
@@ -24,8 +24,8 @@
@implementation BookmarkBarToolbarView
- (BOOL)isOpaque {
- // -drawRect: calls -drawAsDetachedBubble: or -drawBackground:, both of which
- // fill the dirty rect with an opaque color.
+ // -drawRect: calls -drawAsDetachedBubble: or -[super drawRect:], both of
+ // which fill the dirty rect with an opaque color.
return YES;
}
@@ -41,7 +41,7 @@
[controller_ isAnimatingFromState:BookmarkBar::DETACHED]) {
[self drawAsDetachedBubble:dirtyRect];
} else {
- [self drawBackground:dirtyRect];
+ [super drawRect:dirtyRect];
}
}
@@ -70,7 +70,7 @@
CGContextRef cgContext = static_cast<CGContextRef>([context graphicsPort]);
CGContextSetAlpha(cgContext, 1 - morph);
CGContextBeginTransparencyLayer(cgContext, NULL);
- [self drawBackground:dirtyRect];
+ [super drawRect:dirtyRect];
CGContextEndTransparencyLayer(cgContext);
}

Powered by Google App Engine
This is Rietveld 408576698