Skip to content
Permalink
Browse files
[giow] (0) defer to WebIDL for how to handle erorneous inputs to th C…
…anvasPixelArray setter.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8405

git-svn-id: http://svn.whatwg.org/webapps@4491 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 5, 2010
1 parent 62d66f0 commit f4cfc37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 38 deletions.
@@ -27070,15 +27070,7 @@ <h6 id=pixel-manipulation><span class=secno>4.8.11.1.12 </span><dfn>Pixel manipu

<p>When a <code><a href=#canvaspixelarray>CanvasPixelArray</a></code> object is <dfn id=dom-canvaspixelarray-set title=dom-CanvasPixelArray-set>indexed to modify an indexed
property</dfn> <var title="">index</var> with value <var title="">value</var>, the value of the <var title="">index</var>th
component in the array must be set to <var title="">value</var>. JS
<code>undefined</code> values must be converted to zero. Other
values must first be converted to numbers using JavaScript's
ToNumber algorithm, and if the result is a NaN value, then the value
must be converted to zero. If the result is less than 0, it must be
clamped to zero. If the result is more than 255, it must be clamped
to 255. If the number is not an integer, it should be rounded to the
nearest integer using the IEEE 754 <i>convertToIntegerTiesToEven</i>
rounding mode. <a href=#refsECMA262>[ECMA262]</a> <a href=#refsIEEE754>[IEEE754]</a></p>
component in the array must be set to <var title="">value</var>.</p>

<p class=note>The width and height (<var title="">w</var> and <var title="">h</var>) might be different from the <var title="">sw</var>
and <var title="">sh</var> arguments to the above methods, e.g. if
@@ -85961,11 +85953,6 @@ <h3 class="no-num">Reflecting IDL attributes</h3>
<dd><cite><a href=http://www.iana.org/assignments/message-headers/perm-headers.html>Permanent
Message Header Field Names</a></cite>. IANA, October 2009.</dd>

<dt id=refsIEEE754>[IEEE754]</dt>
<dd><cite><a href="http://ieeexplore.ieee.org/servlet/opac?punumber=4610933">IEEE
Standard for Floating-Point Arithmetic (IEEE 754)</a></cite>. IEEE,
August 2008. ISBN 978-0-7381-5753-5.</dd>

<dt id=refsISO8601>[ISO8601]</dt>
<dd><cite><a href="http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=doc.Fetch&amp;nodeid=4021199">ISO8601: Data elements and interchange formats &mdash; Information interchange &mdash; Representation of dates and times</a></cite>. ISO, December 2004.</dd>

15 index
@@ -26905,15 +26905,7 @@ v5DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex

<p>When a <code><a href=#canvaspixelarray>CanvasPixelArray</a></code> object is <dfn id=dom-canvaspixelarray-set title=dom-CanvasPixelArray-set>indexed to modify an indexed
property</dfn> <var title="">index</var> with value <var title="">value</var>, the value of the <var title="">index</var>th
component in the array must be set to <var title="">value</var>. JS
<code>undefined</code> values must be converted to zero. Other
values must first be converted to numbers using JavaScript's
ToNumber algorithm, and if the result is a NaN value, then the value
must be converted to zero. If the result is less than 0, it must be
clamped to zero. If the result is more than 255, it must be clamped
to 255. If the number is not an integer, it should be rounded to the
nearest integer using the IEEE 754 <i>convertToIntegerTiesToEven</i>
rounding mode. <a href=#refsECMA262>[ECMA262]</a> <a href=#refsIEEE754>[IEEE754]</a></p>
component in the array must be set to <var title="">value</var>.</p>

<p class=note>The width and height (<var title="">w</var> and <var title="">h</var>) might be different from the <var title="">sw</var>
and <var title="">sh</var> arguments to the above methods, e.g. if
@@ -77729,11 +77721,6 @@ interface <a href=#htmldocument>HTMLDocument</a> {
<dd><cite><a href=http://www.iana.org/assignments/message-headers/perm-headers.html>Permanent
Message Header Field Names</a></cite>. IANA, October 2009.</dd>

<dt id=refsIEEE754>[IEEE754]</dt>
<dd><cite><a href="http://ieeexplore.ieee.org/servlet/opac?punumber=4610933">IEEE
Standard for Floating-Point Arithmetic (IEEE 754)</a></cite>. IEEE,
August 2008. ISBN 978-0-7381-5753-5.</dd>

<dt id=refsISO8601>[ISO8601]</dt>
<dd><cite><a href="http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=doc.Fetch&amp;nodeid=4021199">ISO8601: Data elements and interchange formats &mdash; Information interchange &mdash; Representation of dates and times</a></cite>. ISO, December 2004.</dd>

11 source
@@ -29466,16 +29466,7 @@ v5DVT (also check for '- -' bits in the part above) -->
title="dom-CanvasPixelArray-set">indexed to modify an indexed
property</dfn> <var title="">index</var> with value <var
title="">value</var>, the value of the <var title="">index</var>th
component in the array must be set to <var title="">value</var>. JS
<code>undefined</code> values must be converted to zero. Other
values must first be converted to numbers using JavaScript's
ToNumber algorithm, and if the result is a NaN value, then the value
must be converted to zero. If the result is less than 0, it must be
clamped to zero. If the result is more than 255, it must be clamped
to 255. If the number is not an integer, it should be rounded to the
nearest integer using the IEEE 754 <i>convertToIntegerTiesToEven</i>
rounding mode. <a href="#refsECMA262">[ECMA262]</a> <a
href="#refsIEEE754">[IEEE754]</a></p>
component in the array must be set to <var title="">value</var>.</p>

<p class="note">The width and height (<var title="">w</var> and <var
title="">h</var>) might be different from the <var title="">sw</var>

0 comments on commit f4cfc37

Please sign in to comment.