Modified: trunk/LayoutTests/ChangeLog (195149 => 195150)
--- trunk/LayoutTests/ChangeLog 2016-01-15 22:29:19 UTC (rev 195149)
+++ trunk/LayoutTests/ChangeLog 2016-01-15 22:58:45 UTC (rev 195150)
@@ -1,3 +1,13 @@
+2016-01-15 Myles C. Maxfield <[email protected]>
+
+ [Cocoa] Font features are not applied to the system font
+ https://bugs.webkit.org/show_bug.cgi?id=153053
+
+ Reviewed by Dean Jackson.
+
+ * fast/text/system-font-features-expected.html: Added.
+ * fast/text/system-font-features.html: Added.
+
2016-01-15 Joseph Pecoraro <[email protected]>
Media Query (-webkit-video-playable-inline) is failing as an invalid media query _expression_
Added: trunk/LayoutTests/fast/text/system-font-features-expected.html (0 => 195150)
--- trunk/LayoutTests/fast/text/system-font-features-expected.html (rev 0)
+++ trunk/LayoutTests/fast/text/system-font-features-expected.html 2016-01-15 22:58:45 UTC (rev 195150)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that font features are applied to -apple-system.
+<div style="font: 50px -apple-system-monospaced-numbers;">0123456789</div>
+</body>
+</html>
Added: trunk/LayoutTests/fast/text/system-font-features.html (0 => 195150)
--- trunk/LayoutTests/fast/text/system-font-features.html (rev 0)
+++ trunk/LayoutTests/fast/text/system-font-features.html 2016-01-15 22:58:45 UTC (rev 195150)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html>
+<head>
+</head>
+<body>
+This test makes sure that font features are applied to -apple-system.
+<div style="font: 50px -apple-system; font-variant-numeric: tabular-nums;">0123456789</div>
+</body>
+</html>
Modified: trunk/Source/WebCore/ChangeLog (195149 => 195150)
--- trunk/Source/WebCore/ChangeLog 2016-01-15 22:29:19 UTC (rev 195149)
+++ trunk/Source/WebCore/ChangeLog 2016-01-15 22:58:45 UTC (rev 195150)
@@ -1,3 +1,17 @@
+2016-01-15 Myles C. Maxfield <[email protected]>
+
+ [Cocoa] Font features are not applied to the system font
+ https://bugs.webkit.org/show_bug.cgi?id=153053
+
+ Reviewed by Dean Jackson.
+
+ We simply need to call preparePlatformFont() on it.
+
+ Test: fast/text/system-font-features.html
+
+ * platform/graphics/cocoa/FontCacheCoreText.cpp:
+ (WebCore::fontWithFamily):
+
2016-01-15 Tim Horton <[email protected]>
Data detector yellow highlight location is vertically mirrored in WebKit1
Modified: trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp (195149 => 195150)
--- trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp 2016-01-15 22:29:19 UTC (rev 195149)
+++ trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp 2016-01-15 22:58:45 UTC (rev 195150)
@@ -676,15 +676,15 @@
{
if (family.isEmpty())
return nullptr;
- if (auto specialCase = platformFontWithFamilySpecialCase(family, weight, desiredTraits, size))
- return specialCase;
+
+ RetainPtr<CTFontRef> foundFont = platformFontWithFamilySpecialCase(family, weight, desiredTraits, size);
+ if (!foundFont) {
#if ENABLE(PLATFORM_FONT_LOOKUP)
- RetainPtr<CTFontRef> foundFont = platformFontLookupWithFamily(family, desiredTraits, weight, size);
+ foundFont = platformFontLookupWithFamily(family, desiredTraits, weight, size);
#else
- UNUSED_PARAM(featureSettings);
- UNUSED_PARAM(variantSettings);
- RetainPtr<CTFontRef> foundFont = platformFontWithFamily(family, desiredTraits, weight, textRenderingMode, size);
+ foundFont = platformFontWithFamily(family, desiredTraits, weight, textRenderingMode, size);
#endif
+ }
return preparePlatformFont(foundFont.get(), textRenderingMode, nullptr, nullptr, featureSettings, variantSettings);
}