Skip to content

Commit

Permalink
[] (0) Fix an invariant description for the ImageData APIs.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3228 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 12, 2009
1 parent 8617f61 commit 4428bd3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 5 additions & 3 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -25516,11 +25516,13 @@ v4DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
this specification, except that the following must result in no
visible changes to the rendering:</p>

<pre>context.putImageData(context.getImageData(x, y, w, h), x, y);</pre>
<pre>context.putImageData(context.getImageData(x, y, w, h), p, q);</pre>

<p>...for any value of <var title="">x</var>, <var title="">y</var>,
<var title="">w</var>, and <var title="">h</var>, and the following
two calls:</p>
<var title="">w</var>, and <var title="">h</var> and where <var title="">p</var> is the smaller of <var title="">x</var> and the sum
of <var title="">x</var> and <var title="">w</var>, and <var title="">q</var> is the smaller of <var title="">y</var> and the sum
of <var title="">y</var> and <var title="">h</var>; and except that
the following two calls:</p>

<pre>context.createImageData(w, h);
context.getImageData(0, 0, w, h);</pre>
Expand Down
10 changes: 7 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -28049,11 +28049,15 @@ v4DVT (also check for '- -' bits in the part above) -->
this specification, except that the following must result in no
visible changes to the rendering:</p>

<pre>context.putImageData(context.getImageData(x, y, w, h), x, y);</pre>
<pre>context.putImageData(context.getImageData(x, y, w, h), p, q);</pre>

<p>...for any value of <var title="">x</var>, <var title="">y</var>,
<var title="">w</var>, and <var title="">h</var>, and the following
two calls:</p>
<var title="">w</var>, and <var title="">h</var> and where <var
title="">p</var> is the smaller of <var title="">x</var> and the sum
of <var title="">x</var> and <var title="">w</var>, and <var
title="">q</var> is the smaller of <var title="">y</var> and the sum
of <var title="">y</var> and <var title="">h</var>; and except that
the following two calls:</p>

<pre>context.createImageData(w, h);
context.getImageData(0, 0, w, h);</pre>
Expand Down

0 comments on commit 4428bd3

Please sign in to comment.