[html5] r1760 - /
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jun 12 18:57:49 PDT 2008
Author: ianh
Date: 2008-06-12 18:57:49 -0700 (Thu, 12 Jun 2008)
New Revision: 1760
Modified:
index
source
Log:
[gow] (2) Make the spec more consistent about Infinity and NaN values throwing NOT_SUPPORTED_ERR.
Modified: index
===================================================================
--- index 2008-06-13 01:49:29 UTC (rev 1759)
+++ index 2008-06-13 01:57:49 UTC (rev 1760)
@@ -18850,7 +18850,7 @@
gradient. If any of the arguments to <code
title=dom-context-2d-createLinearGradient><a
href="#createlineargradient">createLinearGradient()</a></code> are
- infinite or NaN, the method must raise an <code>INDEX_SIZE_ERR</code>
+ infinite or NaN, the method must raise a <code>NOT_SUPPORTED_ERR</code>
exception. Otherwise, the method must return a linear <code><a
href="#canvasgradient">CanvasGradient</a></code> initialized with the
specified line.
@@ -18879,10 +18879,11 @@
<var title="">y0</var>) and radius <var title="">r0</var>, and the last
three representing the end circle with origin (<var title="">x1</var>,
<var title="">y1</var>) and radius <var title="">r1</var>. The values are
- in coordinate space units. If either of <var title="">r0</var> or <var
- title="">r1</var> are negative, or if any of the arguments are infinite or
- NaN, an <code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise,
- the method must return a radial <code><a
+ in coordinate space units. If any of the arguments are infinite or NaN, a
+ <code>NOT_SUPPORTED_ERR</code> exception must be raised. If either of <var
+ title="">r0</var> or <var title="">r1</var> are negative, an
+ <code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise, the
+ method must return a radial <code><a
href="#canvasgradient">CanvasGradient</a></code> initialized with the two
specified circles, after transforming them according to the <a
href="#transformations0" title=dom-context-2d-transformation>current
@@ -20214,7 +20215,8 @@
<p>If any of the arguments to <code title=dom-context-2d-createImageData><a
href="#createimagedata">createImageData()</a></code> or <code
title=dom-context-2d-getImageData><a
- href="#getimagedata">getImageData()</a></code> are infinite or NaN, or if
+ href="#getimagedata">getImageData()</a></code> are infinite or NaN, the
+ method must instead raise a <code>NOT_SUPPORTED_ERR</code> exception. If
either the <var title="">sw</var> or <var title="">sh</var> arguments are
zero, the method must instead raise an <code>INDEX_SIZE_ERR</code>
exception.
@@ -20278,15 +20280,15 @@
method writes data from <code><a href="#imagedata">ImageData</a></code>
structures back to the canvas.
+ <p>If any of the arguments to the method are infinite or NaN, the method
+ must raise an <code>NOT_SUPPORTED_ERR</code> exception.
+
<p>If the first argument to the method is null or not an <code><a
href="#imagedata">ImageData</a></code> object then the <code
title=dom-context-2d-putImageData><a
href="#putimagedata">putImageData()</a></code> method must raise a
<code>TYPE_MISMATCH_ERR</code> exception.
- <p>If any of the arguments to the method are infinite or NaN, the method
- must raise an <code>INDEX_SIZE_ERR</code> exception.
-
<p>When the last four arguments are omitted, they must be assumed to have
the values 0, 0, the <code title=dom-imagedata-width><a
href="#width3">width</a></code> member of the <var
Modified: source
===================================================================
--- source 2008-06-13 01:49:29 UTC (rev 1759)
+++ source 2008-06-13 01:57:49 UTC (rev 1760)
@@ -16445,8 +16445,8 @@
<var title="">y0</var>) and end point (<var title="">x1</var>, <var
title="">y1</var>) of the gradient. If any of the arguments to <code
title="dom-context-2d-createLinearGradient">createLinearGradient()</code>
- are infinite or NaN, the method must raise an
- <code>INDEX_SIZE_ERR</code> exception. Otherwise, the method must
+ are infinite or NaN, the method must raise a
+ <code>NOT_SUPPORTED_ERR</code> exception. Otherwise, the method must
return a linear <code>CanvasGradient</code> initialized with the
specified line.</p>
@@ -16475,12 +16475,13 @@
title="">r0</var>, and the last three representing the end circle
with origin (<var title="">x1</var>, <var title="">y1</var>) and
radius <var title="">r1</var>. The values are in coordinate space
- units. If either of <var title="">r0</var> or <var title="">r1</var>
- are negative, or if any of the arguments are infinite or NaN, an
- <code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise, the
- method must return a radial <code>CanvasGradient</code> initialized
- with the two specified circles, after transforming them according to
- the <span title="dom-context-2d-transformation">current
+ units. If any of the arguments are infinite or NaN, a
+ <code>NOT_SUPPORTED_ERR</code> exception must be raised. If either
+ of <var title="">r0</var> or <var title="">r1</var> are negative, an
+ <code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise,
+ the method must return a radial <code>CanvasGradient</code>
+ initialized with the two specified circles, after transforming them
+ according to the <span title="dom-context-2d-transformation">current
transformation matrix</span>.</p>
<p>Radial gradients must be rendered by following these steps:</p>
@@ -17860,9 +17861,11 @@
<p>If any of the arguments to <code
title="dom-context-2d-createImageData">createImageData()</code> or
<code title="dom-context-2d-getImageData">getImageData()</code> are
- infinite or NaN, or if either the <var title="">sw</var> or <var
- title="">sh</var> arguments are zero, the method must instead raise
- an <code>INDEX_SIZE_ERR</code> exception.</p>
+ infinite or NaN, the method must instead raise a
+ <code>NOT_SUPPORTED_ERR</code> exception. If either the <var
+ title="">sw</var> or <var title="">sh</var> arguments are zero, the
+ method must instead raise an <code>INDEX_SIZE_ERR</code>
+ exception.</p>
<p><code>ImageData</code> objects must be initialized so that their
<dfn title="dom-imagedata-width"><code>width</code></dfn> attribute
@@ -17924,14 +17927,14 @@
title="">dirtyHeight</var>)</code></dfn> method writes data from
<code>ImageData</code> structures back to the canvas.</p>
+ <p>If any of the arguments to the method are infinite or NaN, the
+ method must raise an <code>NOT_SUPPORTED_ERR</code> exception.</p>
+
<p>If the first argument to the method is null or not an
<code>ImageData</code> object then the <code
title="dom-context-2d-putImageData">putImageData()</code> method
must raise a <code>TYPE_MISMATCH_ERR</code> exception.</p>
- <p>If any of the arguments to the method are infinite or NaN, the
- method must raise an <code>INDEX_SIZE_ERR</code> exception.</p>
-
<p>When the last four arguments are omitted, they must be assumed to
have the values 0, 0, the <code
title="dom-imagedata-width">width</code> member of the <var
More information about the Commit-Watchers
mailing list