| Index: Source/core/css/FontFaceSet.idl
|
| diff --git a/Source/core/css/FontFaceSet.idl b/Source/core/css/FontFaceSet.idl
|
| index e88d74fd6cdb015fae5e9f5c127247bebc5d5d01..9fe5d56031e76b24097841df09f026588a4298d3 100644
|
| --- a/Source/core/css/FontFaceSet.idl
|
| +++ b/Source/core/css/FontFaceSet.idl
|
| @@ -28,6 +28,8 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| +enum FontFaceSetLoadStatus { "loading", "loaded" };
|
| +
|
| [
|
| NoInterfaceObject,
|
| EnabledAtRuntime=FontLoadEvents,
|
| @@ -39,8 +41,10 @@
|
| attribute EventHandler onloadingdone;
|
| attribute EventHandler onloadingerror;
|
|
|
| - boolean checkFont(DOMString font, [Default=NullString] optional DOMString text);
|
| - void loadFont(Dictionary params);
|
| - void notifyWhenFontsReady(VoidCallback callback);
|
| - readonly attribute boolean loading;
|
| + [RaisesException] sequence<FontFace> match(DOMString font, [Default=NullString] optional DOMString text);
|
| + [RaisesException] boolean check(DOMString font, [Default=NullString] optional DOMString text);
|
| + [EnabledAtRuntime=Promise, RaisesException] Promise load(DOMString font, [Default=NullString] optional DOMString text);
|
| + [EnabledAtRuntime=Promise] Promise ready();
|
| +
|
| + readonly attribute FontFaceSetLoadStatus status;
|
| };
|
|
|