| Index: core/css/FontFaceSet.idl
|
| diff --git a/core/css/FontFaceSet.idl b/core/css/FontFaceSet.idl
|
| index 643c335b562458e8ebea329064a7ef0cb6c0f0c5..7f5b6ced0be962467e4aa543e821c4c99e2e6dd3 100644
|
| --- a/core/css/FontFaceSet.idl
|
| +++ b/core/css/FontFaceSet.idl
|
| @@ -32,7 +32,7 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
|
|
|
| [
|
| ActiveDOMObject,
|
| - GenerateVisitDOMWrapper=document,
|
| + SetWrapperReferenceFrom=document,
|
| NoInterfaceObject,
|
| RuntimeEnabled=FontLoadEvents,
|
| ] interface FontFaceSet : EventTarget {
|
| @@ -41,10 +41,16 @@ enum FontFaceSetLoadStatus { "loading", "loaded" };
|
| attribute EventHandler onloadingdone;
|
| attribute EventHandler onloadingerror;
|
|
|
| - [RaisesException] sequence<FontFace> match(DOMString font, [Default=NullString] optional DOMString text);
|
| [RaisesException] boolean check(DOMString font, [Default=NullString] optional DOMString text);
|
| [RaisesException] Promise load(DOMString font, [Default=NullString] optional DOMString text);
|
| Promise ready();
|
|
|
| + [RaisesException] void add(FontFace fontFace);
|
| + void clear();
|
| + [RaisesException, ImplementedAs=remove] boolean delete(FontFace fontFace);
|
| + void forEach(FontFaceSetForEachCallback callback, optional any thisArg);
|
| + [RaisesException] boolean has(FontFace fontFace);
|
| +
|
| + readonly attribute unsigned long size;
|
| readonly attribute FontFaceSetLoadStatus status;
|
| };
|
|
|