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

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

Issue 240093006: CoreAnimation: Fix text anti-aliasing in download shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_omnibox_aa
Patch Set: Fix typo Created 6 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/download/download_item_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
index cc3f93be1ee3ae65027cbfdde44a968b3bf2eb4a..042d1a288e4a1e7ecdc260888818ad43a17fafaa 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
@@ -405,14 +405,14 @@ BookmarkButton* gDraggedButton = nil; // Weak
}
- (BOOL)isOpaque {
- // Make this control opaque so that sub pixel anti aliasing works when core
- // animation is enabled.
+ // Make this control opaque so that sub-pixel anti-aliasing works when
+ // CoreAnimation is enabled.
return YES;
}
- (void)drawRect:(NSRect)rect {
- NSView* toolbarView = [[self superview] superview];
- [self cr_drawUsingAncestor:toolbarView inRect:(NSRect)rect];
+ NSView* bookmarkBarToolbarView = [[self superview] superview];
+ [self cr_drawUsingAncestor:bookmarkBarToolbarView inRect:(NSRect)rect];
[super drawRect:rect];
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/download/download_item_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698