Index: chrome/browser/ui/cocoa/download/download_show_all_button.mm |
diff --git a/chrome/browser/ui/cocoa/download/download_show_all_button.mm b/chrome/browser/ui/cocoa/download/download_show_all_button.mm |
index 81b635405d5a9e0b48a198cc29f67b7b373a679a..196a7ff4035f51ce55f51c327d2beb65b23aab81 100644 |
--- a/chrome/browser/ui/cocoa/download/download_show_all_button.mm |
+++ b/chrome/browser/ui/cocoa/download/download_show_all_button.mm |
@@ -6,6 +6,8 @@ |
#include "base/logging.h" |
#import "chrome/browser/ui/cocoa/download/download_show_all_cell.h" |
+#import "chrome/browser/ui/cocoa/nsview_additions.h" |
+#import "chrome/browser/ui/cocoa/view_id_util.h" |
#include "grit/generated_resources.h" |
#include "grit/theme_resources.h" |
#include "ui/base/resource/resource_bundle.h" |
@@ -35,4 +37,16 @@ |
[self setFrame:newRect]; |
} |
+- (BOOL)isOpaque { |
+ // Make this control opaque so that sub-pixel anti-aliasing works when |
+ // CoreAnimation is enabled. |
+ return YES; |
+} |
+ |
+- (void)drawRect:(NSRect)rect { |
+ NSView* downloadShelfView = [self ancestorWithViewID:VIEW_ID_DOWNLOAD_SHELF]; |
+ [self cr_drawUsingAncestor:downloadShelfView inRect:rect]; |
+ [super drawRect:rect]; |
+} |
+ |
@end |