Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1654)

Unified Diff: core/html/HTMLCanvasElement.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/html/HTMLButtonElement.idl ('k') | core/html/HTMLCollection.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « core/html/HTMLButtonElement.idl ('k') | core/html/HTMLCollection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698