[html5] r3228 - [] (0) Fix an invariant description for the ImageData APIs.

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 11 20:42:46 PDT 2009


Author: ianh
Date: 2009-06-11 20:42:45 -0700 (Thu, 11 Jun 2009)
New Revision: 3228

Modified:
   index
   source
Log:
[] (0) Fix an invariant description for the ImageData APIs.

Modified: index
===================================================================
--- index	2009-06-12 03:22:05 UTC (rev 3227)
+++ index	2009-06-12 03:42:45 UTC (rev 3228)
@@ -25516,11 +25516,13 @@
   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>

Modified: source
===================================================================
--- source	2009-06-12 03:22:05 UTC (rev 3227)
+++ source	2009-06-12 03:42:45 UTC (rev 3228)
@@ -28049,11 +28049,15 @@
   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>




More information about the Commit-Watchers mailing list