[html5] r7049 - / images
whatwg at whatwg.org
whatwg at whatwg.org
Mon Apr 9 09:23:45 PDT 2012
Author: ianh
Date: 2012-04-09 09:23:43 -0700 (Mon, 09 Apr 2012)
New Revision: 7049
Modified:
complete.html
images/content-venn.svg
index
source
Log:
[giow] (0) Fix cloning of ImageData, and make it clearer how TypedArray links into the structured clone algorithm.
Affected topics: DOM APIs
Modified: complete.html
===================================================================
--- complete.html 2012-04-04 18:56:01 UTC (rev 7048)
+++ complete.html 2012-04-09 16:23:43 UTC (rev 7049)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 4 April 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 9 April 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -9634,6 +9634,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><a href=#imagedata>ImageData</a></code> object</dt>
+
+ <dd><p>Let <var title="">output</var> be a newly constructed
+ <code><a href=#imagedata>ImageData</a></code> object whose <code title=dom-imagedata-width><a href=#dom-imagedata-width>width</a></code> and <code title=dom-imagedata-height><a href=#dom-imagedata-height>height</a></code> attributes have values
+ equal to the corresponding attributes on <var title="">input</var>, and whose <code title=dom-imagedata-data><a href=#dom-imagedata-data>data</a></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><a href=#dom-imagedata-data>data</a></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>
+
<!--(when we add this, make sure to throw DataCloneError if these objects are already closed)
<dt>If <var title="">input</var> is an <code>ArrayBuffer</code> object</dt>
@@ -9661,6 +9670,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>
Modified: images/content-venn.svg
===================================================================
--- images/content-venn.svg 2012-04-04 18:56:01 UTC (rev 7048)
+++ images/content-venn.svg 2012-04-09 16:23:43 UTC (rev 7049)
@@ -44,6 +44,7 @@
<li><code>del</code></li>
<li><code>details</code></li>
<li><code>dfn</code></li>
+ <li><code>dialog</code></li>
<li><code>div</code></li>
<li><code>dl</code></li>
<li><code>em</code></li>
Modified: index
===================================================================
--- index 2012-04-04 18:56:01 UTC (rev 7048)
+++ index 2012-04-09 16:23:43 UTC (rev 7049)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 4 April 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 9 April 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -9634,6 +9634,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><a href=#imagedata>ImageData</a></code> object</dt>
+
+ <dd><p>Let <var title="">output</var> be a newly constructed
+ <code><a href=#imagedata>ImageData</a></code> object whose <code title=dom-imagedata-width><a href=#dom-imagedata-width>width</a></code> and <code title=dom-imagedata-height><a href=#dom-imagedata-height>height</a></code> attributes have values
+ equal to the corresponding attributes on <var title="">input</var>, and whose <code title=dom-imagedata-data><a href=#dom-imagedata-data>data</a></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><a href=#dom-imagedata-data>data</a></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>
+
<!--(when we add this, make sure to throw DataCloneError if these objects are already closed)
<dt>If <var title="">input</var> is an <code>ArrayBuffer</code> object</dt>
@@ -9661,6 +9670,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>
Modified: source
===================================================================
--- source 2012-04-04 18:56:01 UTC (rev 7048)
+++ source 2012-04-09 16:23:43 UTC (rev 7049)
@@ -9795,6 +9795,22 @@
<dd><p>Let <var title="">output</var> be a newly constructed <code>FileList</code> object containing a list of newly constructed <code>File</code> objects corresponding to the same underlying data as those in <var title="">input</var>, maintaining their relative order.</p></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 <span>internal structured cloning
+ algorithm</span> 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.</p></dd>
+
<!--(when we add this, make sure to throw DataCloneError if these objects are already closed)
<dt>If <var title="">input</var> is an <code>ArrayBuffer</code> object</dt>
@@ -9823,6 +9839,10 @@
<dd><p>Let <var title="">output</var> be a newly constructed empty <code title="">Object</code> object.</p></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.</p></dd>
+
<dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>, <code>Function</code>)</dt>
<dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
More information about the Commit-Watchers
mailing list