Index: core/html/HTMLCanvasElement.idl |
diff --git a/core/html/HTMLCanvasElement.idl b/core/html/HTMLCanvasElement.idl |
index 458e8ab62eefa8290ff77ce7d0925f43ac07393e..15e7e501013358ba0c18fdce61628b3026ea8c88 100644 |
--- a/core/html/HTMLCanvasElement.idl |
+++ b/core/html/HTMLCanvasElement.idl |
@@ -26,7 +26,8 @@ |
// https://html.spec.whatwg.org/#the-canvas-element |
-interface HTMLCanvasElement : HTMLElement { |
+interface HTMLCanvasElement : HTMLElement |
+{ |
// FIXME: width and height should be unsigned long. |
attribute long width; |
attribute long height; |
@@ -45,11 +46,12 @@ interface HTMLCanvasElement : HTMLElement { |
// handled differently the return type could be changed to "RenderingContext?" |
// and the [CallWith=ScriptState] extended attribute removed. |
// |
- // FIXME: The contextId argument should not be optional. |
- [CallWith=ScriptState] any getContext([Default=Undefined] optional DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributes attributes); |
+ [CallWith=ScriptState] any getContext(DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributes attributes); |
// Note: The arguments argument is variadic in the spec, but not here as |
// only one extra argument is actually used. |
- // FIXME: type should not be nullable or have a default value. |
- [RaisesException] DOMString toDataURL(optional DOMString? type = null, optional any arguments); |
+ // FIXME: type should not have a default value. |
+ [RaisesException] DOMString toDataURL(optional DOMString type = null, optional any arguments); |
+ |
+ [RaisesException] void toBlob(BlobCallback _callback, optional DOMString type = null, optional any arguments); |
}; |