[html5] r8566 - [giow] (0) Define that the ImageData constructor's resulting object's contents a [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Apr 7 14:49:24 PDT 2014
Author: ianh
Date: 2014-04-07 14:49:21 -0700 (Mon, 07 Apr 2014)
New Revision: 8566
Modified:
complete.html
index
source
Log:
[giow] (0) Define that the ImageData constructor's resulting object's contents are zero.
Affected topics: Canvas
Modified: complete.html
===================================================================
--- complete.html 2014-04-07 21:12:37 UTC (rev 8565)
+++ complete.html 2014-04-07 21:49:21 UTC (rev 8566)
@@ -59353,9 +59353,10 @@
<p>The <dfn id=dom-imagedata title=dom-imagedata><code>ImageData()</code></dfn> constructors and the <dfn id=dom-context-2d-createimagedata title=dom-context-2d-createImageData><code>createImageData()</code></dfn> methods are used to
instantiate new <code><a href=#imagedata>ImageData</a></code> objects.</p>
+<!--CLEANUP-->
<p>When the <code title=dom-imagedata><a href=#dom-imagedata>ImageData()</a></code> constructor is invoked with two
numeric arguments <var title="">sw</var> and <var title="">sh</var>, it must return a new
- <code><a href=#imagedata>ImageData</a></code> object representing a rectangle with a width equal to <var title="">sw</var> and a height equal to <var title="">sh</var>, if both <var title="">sw</var>
+ <code><a href=#imagedata>ImageData</a></code> object representing a transparent black rectangle with a width equal to <var title="">sw</var> and a height equal to <var title="">sh</var>, if both <var title="">sw</var>
and <var title="">sh</var> are non-zero. If one or both of <var title="">sw</var> and <var title="">sh</var> are zero, then the constructor must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
exception instead.</p>
Modified: index
===================================================================
--- index 2014-04-07 21:12:37 UTC (rev 8565)
+++ index 2014-04-07 21:49:21 UTC (rev 8566)
@@ -59353,9 +59353,10 @@
<p>The <dfn id=dom-imagedata title=dom-imagedata><code>ImageData()</code></dfn> constructors and the <dfn id=dom-context-2d-createimagedata title=dom-context-2d-createImageData><code>createImageData()</code></dfn> methods are used to
instantiate new <code><a href=#imagedata>ImageData</a></code> objects.</p>
+<!--CLEANUP-->
<p>When the <code title=dom-imagedata><a href=#dom-imagedata>ImageData()</a></code> constructor is invoked with two
numeric arguments <var title="">sw</var> and <var title="">sh</var>, it must return a new
- <code><a href=#imagedata>ImageData</a></code> object representing a rectangle with a width equal to <var title="">sw</var> and a height equal to <var title="">sh</var>, if both <var title="">sw</var>
+ <code><a href=#imagedata>ImageData</a></code> object representing a transparent black rectangle with a width equal to <var title="">sw</var> and a height equal to <var title="">sh</var>, if both <var title="">sw</var>
and <var title="">sh</var> are non-zero. If one or both of <var title="">sw</var> and <var title="">sh</var> are zero, then the constructor must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code>
exception instead.</p>
Modified: source
===================================================================
--- source 2014-04-07 21:12:37 UTC (rev 8565)
+++ source 2014-04-07 21:49:21 UTC (rev 8566)
@@ -66110,9 +66110,10 @@
data-x="dom-context-2d-createImageData"><code>createImageData()</code></dfn> methods are used to
instantiate new <code>ImageData</code> objects.</p>
+<!--CLEANUP-->
<p>When the <code data-x="dom-imagedata">ImageData()</code> constructor is invoked with two
numeric arguments <var data-x="">sw</var> and <var data-x="">sh</var>, it must return a new
- <code>ImageData</code> object representing a rectangle with a width equal to <var
+ <code>ImageData</code> object representing a transparent black rectangle with a width equal to <var
data-x="">sw</var> and a height equal to <var data-x="">sh</var>, if both <var data-x="">sw</var>
and <var data-x="">sh</var> are non-zero. If one or both of <var data-x="">sw</var> and <var
data-x="">sh</var> are zero, then the constructor must throw an <code>IndexSizeError</code>
More information about the Commit-Watchers
mailing list