[html5] r8567 - [e] (0) Add a non-normative note that repeats the normative text in a different [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Apr 7 14:52:11 PDT 2014


Author: ianh
Date: 2014-04-07 14:52:09 -0700 (Mon, 07 Apr 2014)
New Revision: 8567

Modified:
   complete.html
   index
   source
Log:
[e] (0) Add a non-normative note that repeats the normative text in a different way to be clear.
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2014-04-07 21:49:21 UTC (rev 8566)
+++ complete.html	2014-04-07 21:52:09 UTC (rev 8567)
@@ -59388,9 +59388,16 @@
    <var title="">height</var>, then throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these
    steps.</li>
 
-   <li><p>Return a new <code><a href=#imagedata>ImageData</a></code> object whose width is <var title="">sw</var>, whose
-   height is <var title="">height</var>, and whose data is <var title="">source</var>.</li>
+   <li>
 
+    <p>Return a new <code><a href=#imagedata>ImageData</a></code> object whose width is <var title="">sw</var>, whose
+    height is <var title="">height</var>, and whose data is <var title="">source</var>.</p>
+
+    <p class=note>The resulting object's data is not a <em>copy</em> of <var title="">source</var>, it's the actual <code><a href=#uint8clampedarray>Uint8ClampedArray</a></code> object passed as the
+    first argument to the constructor.</p>
+
+   </li>
+
   </ol><p>When the <code title=dom-context-2d-createImageData><a href=#dom-context-2d-createimagedata>createImageData()</a></code> method 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 transparent black rectangle with a width

Modified: index
===================================================================
--- index	2014-04-07 21:49:21 UTC (rev 8566)
+++ index	2014-04-07 21:52:09 UTC (rev 8567)
@@ -59388,9 +59388,16 @@
    <var title="">height</var>, then throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these
    steps.</li>
 
-   <li><p>Return a new <code><a href=#imagedata>ImageData</a></code> object whose width is <var title="">sw</var>, whose
-   height is <var title="">height</var>, and whose data is <var title="">source</var>.</li>
+   <li>
 
+    <p>Return a new <code><a href=#imagedata>ImageData</a></code> object whose width is <var title="">sw</var>, whose
+    height is <var title="">height</var>, and whose data is <var title="">source</var>.</p>
+
+    <p class=note>The resulting object's data is not a <em>copy</em> of <var title="">source</var>, it's the actual <code><a href=#uint8clampedarray>Uint8ClampedArray</a></code> object passed as the
+    first argument to the constructor.</p>
+
+   </li>
+
   </ol><p>When the <code title=dom-context-2d-createImageData><a href=#dom-context-2d-createimagedata>createImageData()</a></code> method 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 transparent black rectangle with a width

Modified: source
===================================================================
--- source	2014-04-07 21:49:21 UTC (rev 8566)
+++ source	2014-04-07 21:52:09 UTC (rev 8567)
@@ -66152,9 +66152,17 @@
    <var data-x="">height</var>, then throw an <code>IndexSizeError</code> exception and abort these
    steps.</p></li>
 
-   <li><p>Return a new <code>ImageData</code> object whose width is <var data-x="">sw</var>, whose
-   height is <var data-x="">height</var>, and whose data is <var data-x="">source</var>.</p></li>
+   <li>
 
+    <p>Return a new <code>ImageData</code> object whose width is <var data-x="">sw</var>, whose
+    height is <var data-x="">height</var>, and whose data is <var data-x="">source</var>.</p>
+
+    <p class="note">The resulting object's data is not a <em>copy</em> of <var
+    data-x="">source</var>, it's the actual <code>Uint8ClampedArray</code> object passed as the
+    first argument to the constructor.</p>
+
+   </li>
+
   </ol>
 
   <p>When the <code data-x="dom-context-2d-createImageData">createImageData()</code> method is




More information about the Commit-Watchers mailing list