Chromium Code Reviews| Index: Source/core/html/HTMLCanvasElement.idl |
| diff --git a/Source/core/html/HTMLCanvasElement.idl b/Source/core/html/HTMLCanvasElement.idl |
| index 57ead8bcb8e8971c58665b2d167f008b310e5aee..097360a236169f9ea0763691e4320670d952937e 100644 |
| --- a/Source/core/html/HTMLCanvasElement.idl |
| +++ b/Source/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,10 +46,12 @@ interface HTMLCanvasElement : HTMLElement { |
| // handled differently the return type could be changed to "RenderingContext?" |
| // and the [CallWith=ScriptState] extended attribute removed. |
| // |
| - [CallWith=ScriptState] any getContext(DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributes attributes); |
| + [CallWith = ScriptState] any getContext(DOMString contextId, [PermissiveDictionaryConversion] optional CanvasContextCreationAttributes attributes); |
|
Justin Novosad
2015/08/20 20:38:43
Revert whitespace change.
xlai (Olivia)
2015/08/20 21:36:29
Acknowledged.
|
| // Note: The arguments argument is variadic in the spec, but not here as |
| // only one extra argument is actually used. |
| // FIXME: type should not have a default value. |
| [RaisesException] DOMString toDataURL(optional DOMString type = null, optional any arguments); |
| + |
| + [RaisesException, RuntimeEnabled=ExperimentalCanvasFeatures] void toBlob(FileCallback? _callback, optional DOMString type = null, optional any arguments); |
| }; |