W3C home > Mailing lists > Public > public-html-diffs@w3.org > April 2012

hixie: Fix cloning of ImageData, and make it clearer how TypedArray links into the structured clone algorithm. (whatwg r7049)

From: poot <cvsmail@w3.org>
Date: Mon, 09 Apr 2012 12:24:07 -0400
To: public-html-diffs@w3.org
Message-Id: <E1SHHNv-00054g-IK@jay.w3.org>
hixie: Fix cloning of ImageData, and make it clearer how TypedArray
links into the structured clone algorithm. (whatwg r7049)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5619&r2=1.5620&f=h
http://html5.org/tools/web-apps-tracker?from=7048&to=7049

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5619
retrieving revision 1.5620
diff -u -d -r1.5619 -r1.5620
--- Overview.html	4 Apr 2012 18:56:07 -0000	1.5619
+++ Overview.html	9 Apr 2012 16:23:50 -0000	1.5620
@@ -9139,6 +9139,15 @@
 
      <dd><p>Let <var title="">output</var> be a newly constructed <code><a href="#filelist">FileList</a></code> object containing a list of newly constructed <code><a href="#file">File</a></code> objects corresponding to the same underlying data as those in <var title="">input</var>, maintaining their relative order.</dd>
 
+     <dt>If <var title="">input</var> is an <code>ImageData</code> object</dt>
+
+     <dd><p>Let <var title="">output</var> be a newly constructed
+     <code>ImageData</code> object whose <code title="dom-imagedata-width">width</code> and <code title="dom-imagedata-height">height</code> attributes have values
+     equal to the corresponding attributes on <var title="">input</var>, and whose <code title="dom-imagedata-data">data</code> attribute has the value
+     obtained from invoking the <a href="#internal-structured-cloning-algorithm">internal structured cloning
+     algorithm</a> recursively with the value of the <code title="dom-imagedata-data">data</code> attribute on <var title="">input</var> as the new "<var title="">input</var>"
+     argument and <var title="">memory</var> as the new "<var title="">memory</var>" argument.</dd>
+
 
 
      <dt>If <var title="">input</var> is an Array object</dt>
@@ -9158,6 +9167,10 @@
 
      <dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</dd>
 
+     <dt>If <var title="">input</var> is an object that another specification defines how to clone</dt>
+
+     <dd><p>Let <var title="">output</var> be a clone of the object as defined by the other specification.</dd>
+
      <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>, <code><a href="#function">Function</a></code>)</dt>
      <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
Received on Monday, 9 April 2012 16:24:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 16:24:11 GMT