[Cocoa] CTFontDescriptorCreateMatchingFontDescriptor() is not case insensitive
https://bugs.webkit.org/show_bug.cgi?id=171636
<rdar://problem/30811218>
Reviewed by Dean Jackson.
Source/WebCore:
LastResort is the only name which needs to be looked up case-sensitively. We can handle
this in our existing function which handles special font names (like -apple-system) to
make sure that we always do the right thing.
Test: fast/text/lastResort.html
* platform/graphics/ios/FontCacheIOS.mm:
(WebCore::platformFontWithFamilySpecialCase):
* platform/graphics/mac/FontCacheMac.mm:
(WebCore::platformFontWithFamilySpecialCase):
* platform/spi/cocoa/CoreTextSPI.h:
LayoutTests:
* fast/text/lastResort-expected.html: Added.
* fast/text/lastResort.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@216342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 951ab42..4b2cfd9 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,14 @@
+2017-05-06 Myles C. Maxfield <mmaxfield@apple.com>
+
+ [Cocoa] CTFontDescriptorCreateMatchingFontDescriptor() is not case insensitive
+ https://bugs.webkit.org/show_bug.cgi?id=171636
+ <rdar://problem/30811218>
+
+ Reviewed by Dean Jackson.
+
+ * fast/text/lastResort-expected.html: Added.
+ * fast/text/lastResort.html: Added.
+
2017-05-06 Chris Dumez <cdumez@apple.com>
Implement the concept of cookie-averse document