Skip to content

Commit

Permalink
[giow] (0) Define that the ImageData constructor's resulting object's…
Browse files Browse the repository at this point in the history
… contents are zero.

Affected topics: Canvas

git-svn-id: http://svn.whatwg.org/webapps@8566 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 7, 2014
1 parent 6a99364 commit bbc02c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion complete.html
Expand Up @@ -59353,9 +59353,10 @@ <h6 id=pixel-manipulation><span class=secno>4.12.4.2.16 </span><dfn>Pixel manipu
<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>

Expand Down
3 changes: 2 additions & 1 deletion index
Expand Up @@ -59353,9 +59353,10 @@ partial dictionary <a href=#mouseeventinit>MouseEventInit</a> {
<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>

Expand Down
3 changes: 2 additions & 1 deletion source
Expand Up @@ -66110,9 +66110,10 @@ partial dictionary <span>MouseEventInit</span> {
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>
Expand Down

0 comments on commit bbc02c8

Please sign in to comment.