[WebIDL] Remove custom conversion from FontFace code by using a Variant
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2017 23:38:18 +0000 (23:38 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Feb 2017 23:38:18 +0000 (23:38 +0000)
commit06c3789b03e4d81e8be59977c0cefa8e5e5724fb
tree98816b235d9fe54cbbaf11e7de3001c399a79633
parent8db9e2ddb759e228a7c09d489dcf534598641248
[WebIDL] Remove custom conversion from FontFace code by using a Variant
https://bugs.webkit.org/show_bug.cgi?id=168384

Reviewed by Alex Christensen.

Source/WebCore:

Match the font face spec and use a union rather than any in the FontFace constructor.

Test: Added additional cases to fast/text/font-face-javascript.html.

* css/FontFace.cpp:
(WebCore::FontFace::create):
* css/FontFace.h:
* css/FontFace.idl:

LayoutTests:

* fast/text/font-face-javascript.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/font-face-javascript.html
Source/WebCore/ChangeLog
Source/WebCore/css/FontFace.cpp
Source/WebCore/css/FontFace.h
Source/WebCore/css/FontFace.idl