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

Side by Side Diff: ui/message_center/cocoa/opaque_views.mm

Issue 246433013: Merge 264607 "Fix the remaining subpixel antialiasing bugs in th..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/message_center/cocoa/opaque_views.h ('k') | ui/message_center/cocoa/settings_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ui/message_center/cocoa/opaque_views.h" 5 #import "ui/message_center/cocoa/opaque_views.h"
6 6
7 @implementation MCDropDown 7 @implementation MCDropDown
8 // The view must be opaque to render subpixel antialiasing. 8 // The view must be opaque to render subpixel antialiasing.
9 - (BOOL)isOpaque { 9 - (BOOL)isOpaque {
10 return YES; 10 return YES;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return YES; 54 return YES;
55 } 55 }
56 56
57 // The view must also fill its background to render subpixel antialiasing. 57 // The view must also fill its background to render subpixel antialiasing.
58 - (void)drawRect:(NSRect)dirtyRect { 58 - (void)drawRect:(NSRect)dirtyRect {
59 [backgroundColor_ set]; 59 [backgroundColor_ set];
60 NSRectFill(dirtyRect); 60 NSRectFill(dirtyRect);
61 [super drawRect:dirtyRect]; 61 [super drawRect:dirtyRect];
62 } 62 }
63 @end 63 @end
OLDNEW
« no previous file with comments | « ui/message_center/cocoa/opaque_views.h ('k') | ui/message_center/cocoa/settings_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698