Commit 6df83014 authored by ap@apple.com's avatar ap@apple.com

[WK2][Mac] WebKitTestRunner doesn't force system appearance

https://bugs.webkit.org/show_bug.cgi?id=120437

Reviewed by Darin Adler.

* WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
(WTR::InjectedBundle::platformInitialize): Set AppleAquaColorVariant,
AppleHighlightColor and AppleOtherHighlightColor to the same values that DRT uses.
Fixed formatting.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4ea262e2
2013-08-28 Alexey Proskuryakov <ap@apple.com>
[WK2][Mac] WebKitTestRunner doesn't force system appearance
https://bugs.webkit.org/show_bug.cgi?id=120437
Reviewed by Darin Adler.
* WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
(WTR::InjectedBundle::platformInitialize): Set AppleAquaColorVariant,
AppleHighlightColor and AppleOtherHighlightColor to the same values that DRT uses.
Fixed formatting.
2013-08-16 Ryosuke Niwa <rniwa@webkit.org>
<https://webkit.org/b/119806> [Mac] Add a way to easily test attributed string generation
......
......@@ -39,17 +39,23 @@ namespace WTR {
void InjectedBundle::platformInitialize(WKTypeRef)
{
static const int NoFontSmoothing = 0;
static const int BlueTintedAppearance = 1;
NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInteger:4], @"AppleAntiAliasingThreshold",
[NSNumber numberWithInteger:0], @"AppleFontSmoothing",
[NSNumber numberWithInteger:4], @"AppleAntiAliasingThreshold",
[NSNumber numberWithInteger:NoFontSmoothing], @"AppleFontSmoothing",
[NSNumber numberWithInteger:BlueTintedAppearance], @"AppleAquaColorVariant",
@"0.709800 0.835300 1.000000", @"AppleHighlightColor",
@"0.500000 0.500000 0.500000", @"AppleOtherHighlightColor",
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
[NSNumber numberWithBool:NO], @"NSScrollAnimationEnabled",
[NSNumber numberWithBool:NO], @"NSScrollAnimationEnabled",
#else
[NSNumber numberWithBool:NO], @"AppleScrollAnimationEnabled",
[NSNumber numberWithBool:NO], @"AppleScrollAnimationEnabled",
#endif
[NSNumber numberWithBool:NO], @"NSOverlayScrollersEnabled",
@"Always", @"AppleShowScrollBars",
[NSArray arrayWithObject:@"en"], @"AppleLanguages",
[NSNumber numberWithBool:NO], @"NSOverlayScrollersEnabled",
@"Always", @"AppleShowScrollBars",
[NSArray arrayWithObject:@"en"], @"AppleLanguages",
[NSDictionary dictionaryWithObjectsAndKeys:@"notational", @"notationl", nil], @"NSTestCorrectionDictionary",
nil];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment