| Index: core/css/FontFace.idl
|
| diff --git a/modules/encoding/TextDecoder.idl b/core/css/FontFace.idl
|
| similarity index 67%
|
| copy from modules/encoding/TextDecoder.idl
|
| copy to core/css/FontFace.idl
|
| index 576d29807a0bc281223f178570a73f271b77c44b..a66872bb63b1d4cee38abd457d56716eb42e2b3a 100644
|
| --- a/modules/encoding/TextDecoder.idl
|
| +++ b/core/css/FontFace.idl
|
| @@ -28,12 +28,30 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| +enum FontFaceLoadStatus {
|
| + "unloaded",
|
| + "loading",
|
| + "loaded",
|
| + "error"
|
| +};
|
| +
|
| [
|
| - EnabledAtRuntime=EncodingAPI,
|
| - GlobalContext=Window&WorkerGlobalScope,
|
| - Constructor([Default=NullString] optional DOMString label, optional Dictionary options),
|
| + EnabledAtRuntime=FontLoadEvents,
|
| + Constructor(DOMString family, DOMString source, Dictionary descriptors),
|
| ConstructorRaisesException
|
| -] interface TextDecoder {
|
| - readonly attribute DOMString encoding;
|
| - [RaisesException] DOMString decode(optional ArrayBufferView input, optional Dictionary options);
|
| +] interface FontFace {
|
| +
|
| + [SetterRaisesException] attribute DOMString family;
|
| + [SetterRaisesException] attribute DOMString style;
|
| + [SetterRaisesException] attribute DOMString weight;
|
| + [SetterRaisesException] attribute DOMString stretch;
|
| + [SetterRaisesException] attribute DOMString unicodeRange;
|
| + [SetterRaisesException] attribute DOMString variant;
|
| + [SetterRaisesException] attribute DOMString featureSettings;
|
| +
|
| + readonly attribute FontFaceLoadStatus status;
|
| +
|
| + // FIXME: Implement them
|
| + // void load();
|
| + // Promise ready();
|
| };
|
|
|