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

Unified Diff: Source/core/html/HTMLCanvasElement.idl

Issue 988173002: Sync HTML element interfaces C-D with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: turn FIXME into Note Created 5 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 | « no previous file | Source/core/html/HTMLContentElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLCanvasElement.idl
diff --git a/Source/core/html/HTMLCanvasElement.idl b/Source/core/html/HTMLCanvasElement.idl
index 5f2ee7c88105497ec14666243e705cdfa4aa9bc2..48738bb11c5ad72076246f337468b0da6cd3dc7d 100644
--- a/Source/core/html/HTMLCanvasElement.idl
+++ b/Source/core/html/HTMLCanvasElement.idl
@@ -24,15 +24,15 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://html.spec.whatwg.org/#htmlcanvaselement
+
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
interface HTMLCanvasElement : HTMLElement {
-
+ // FIXME: width and height should be unsigned long.
attribute long width;
attribute long height;
- [RaisesException] DOMString toDataURL(optional DOMString? type = null, optional any arguments);
-
// Note: this differs deliberately from the specified Web IDL for this function:
// RenderingContext? getContext(DOMString contextId, any... arguments);
// in order to eliminate the custom binding. It is functionally equivalent.
@@ -46,5 +46,12 @@ interface HTMLCanvasElement : HTMLElement {
// InspectorInstrumentation wrappers to be called for canvases. If that could be
// 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);
+
+ // 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);
};
« no previous file with comments | « no previous file | Source/core/html/HTMLContentElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698