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

Unified Diff: chrome/browser/ui/cocoa/styled_text_field_cell.mm

Issue 1368883002: Mac: restore subpixel AA in the find bar when it doesn't have focus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DISALLOW_COPY.etc Created 5 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/styled_text_field_cell.mm
diff --git a/chrome/browser/ui/cocoa/styled_text_field_cell.mm b/chrome/browser/ui/cocoa/styled_text_field_cell.mm
index 90a978486b31f75f9ec4e40062ba996c9fe160a0..97291b9af7601d903113201ddf9da9df208c1c9e 100644
--- a/chrome/browser/ui/cocoa/styled_text_field_cell.mm
+++ b/chrome/browser/ui/cocoa/styled_text_field_cell.mm
@@ -11,6 +11,7 @@
#include "grit/theme_resources.h"
#import "ui/base/cocoa/nsgraphics_context_additions.h"
#import "ui/base/cocoa/nsview_additions.h"
+#include "ui/base/cocoa/scoped_cg_context_smooth_fonts.h"
#include "ui/gfx/font.h"
#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
@@ -161,6 +162,7 @@
}
// Draw the interior before the focus ring, to make sure nothing overlaps it.
+ ui::ScopedCGContextSmoothFonts lcd_smoothing;
[self drawInteriorWithFrame:cellFrame inView:controlView];
// Draw the focus ring if needed.

Powered by Google App Engine
This is Rietveld 408576698