* 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",
};
[
- 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
+ RuntimeEnabled=FontLoadEvents,
+ WillBeGarbageCollected,
] interface FontFace {
[RaisesException=Setter, SetterCallWith=ExecutionContext] attribute DOMString family;
[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();
};