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

Unified Diff: content/shell/webkit_test_platform_support_mac.mm

Issue 12316132: mac content shell drt: Do not disable antialiasing via NSDefaults (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/webkit_test_platform_support_mac.mm
diff --git a/content/shell/webkit_test_platform_support_mac.mm b/content/shell/webkit_test_platform_support_mac.mm
index 99bda5d40a2cb64dd88c3378cb26874141126413..83db7e5b39af74651ac0a2770537fe0abb1499c2 100644
--- a/content/shell/webkit_test_platform_support_mac.mm
+++ b/content/shell/webkit_test_platform_support_mac.mm
@@ -19,14 +19,11 @@ void SetDefaultsToLayoutTestValues(void) {
// the settings are in before any higher layers could cache values.)
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
-
- const NSInteger kMinFontSizeCGSmoothes = 4;
- const NSInteger kNoFontSmoothing = 0;
+ // Do not set text-rendering prefs (AppleFontSmoothing,
+ // AppleAntiAliasingThreshold) here: Skia picks the right settings for this
+ // in layout test mode, see FontSkia.cpp in WebKit and
+ // SkFontHost_mac_coretext.cpp in skia.
const NSInteger kBlueTintedAppearance = 1;
- [defaults setInteger:kMinFontSizeCGSmoothes
- forKey:@"AppleAntiAliasingThreshold"];
- [defaults setInteger:kNoFontSmoothing
- forKey:@"AppleFontSmoothing"];
[defaults setInteger:kBlueTintedAppearance
forKey:@"AppleAquaColorVariant"];
[defaults setObject:@"0.709800 0.835300 1.000000"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698