| Index: core/css/FontFace.idl
|
| diff --git a/core/css/FontFace.idl b/core/css/FontFace.idl
|
| index 922be5256849910a7a7d1a5881a30e0b6c39b6f6..77d12b268e787c2557288006983c34cd3a75b994 100644
|
| --- a/core/css/FontFace.idl
|
| +++ b/core/css/FontFace.idl
|
| @@ -28,6 +28,8 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| +// http://dev.w3.org/csswg/css-font-loading/#dom-fontface
|
| +
|
| enum FontFaceLoadStatus {
|
| "unloaded",
|
| "loading",
|
| @@ -36,10 +38,14 @@ enum FontFaceLoadStatus {
|
| };
|
|
|
| [
|
| - RuntimeEnabled=FontLoadEvents,
|
| - Constructor(DOMString family, DOMString source, Dictionary descriptors),
|
| + // FIXME: should be union type http://crbug.com/240176
|
| + Constructor(DOMString family, DOMString source, optional Dictionary descriptors),
|
| + Constructor(DOMString family, ArrayBuffer source, optional Dictionary descriptors),
|
| + Constructor(DOMString family, ArrayBufferView source, optional Dictionary descriptors),
|
| ConstructorCallWith=ExecutionContext,
|
| - RaisesException=Constructor
|
| + RaisesException=Constructor,
|
| + RuntimeEnabled=FontLoadEvents,
|
| + WillBeGarbageCollected,
|
| ] interface FontFace {
|
|
|
| [RaisesException=Setter, SetterCallWith=ExecutionContext] attribute DOMString family;
|
| @@ -51,7 +57,7 @@ enum FontFaceLoadStatus {
|
| [RaisesException=Setter, SetterCallWith=ExecutionContext] attribute DOMString featureSettings;
|
|
|
| readonly attribute FontFaceLoadStatus status;
|
| + [CallWith=ScriptState] readonly attribute Promise loaded;
|
|
|
| - [CallWith=ExecutionContext] void load();
|
| - [CallWith=ExecutionContext] Promise ready();
|
| + [CallWith=ScriptState] Promise load();
|
| };
|
|
|