[Cocoa] Support WOFF2
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Nov 2015 03:52:16 +0000 (03:52 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 Nov 2015 03:52:16 +0000 (03:52 +0000)
commit8476846d8f774f5e15b143ac4dab2795b35fef58
treef57dc8cb0b042b6ffae0836d9cba02ee29a6f27a
parent21d13e46aba981e0136b4cbe7846852914bd2eb1
[Cocoa] Support WOFF2
https://bugs.webkit.org/show_bug.cgi?id=150830

Reviewed by Zalan Bujtas.

Source/WebCore:

On platforms which support it, WebKit only needs to recognize WOFF2.

Test: fast/text/woff2.html

* platform/graphics/mac/FontCustomPlatformData.cpp:
(WebCore::FontCustomPlatformData::supportsFormat):

LayoutTests:

* platform/mac/TestExpectations: Disable the test on Operating Systems which don't support WOFF2.
* fast/text/resources/ahem.woff2: Added.
* fast/text/woff2-expected.html: Added.
* fast/text/woff2.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/resources/ahem.woff2 [new file with mode: 0755]
LayoutTests/fast/text/woff2-expected.html [new file with mode: 0644]
LayoutTests/fast/text/woff2.html [new file with mode: 0644]
LayoutTests/platform/mac/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp