[html5] r7384 - [giow] (2) Move the handling of NaN and Infinity to Web IDL where possible. Affe [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Sep 20 16:12:44 PDT 2012


Author: ianh
Date: 2012-09-20 16:12:42 -0700 (Thu, 20 Sep 2012)
New Revision: 7384

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Move the handling of NaN and Infinity to Web IDL where possible.
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2012-09-20 22:38:16 UTC (rev 7383)
+++ complete.html	2012-09-20 23:12:42 UTC (rev 7384)
@@ -36796,8 +36796,8 @@
   // colors and styles (see also the <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> interface)
            attribute (DOMString or CanvasGradient or CanvasPattern) <a href=#dom-context-2d-strokestyle title=dom-context-2d-strokeStyle>strokeStyle</a>; // (default black)
            attribute (DOMString or CanvasGradient or CanvasPattern) <a href=#dom-context-2d-fillstyle title=dom-context-2d-fillStyle>fillStyle</a>; // (default black)
-  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient>createLinearGradient</a>(unrestricted double x0, unrestricted double y0, unrestricted double x1, unrestricted double y1);
-  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createradialgradient title=dom-context-2d-createRadialGradient>createRadialGradient</a>(unrestricted double x0, unrestricted double y0, unrestricted double r0, unrestricted double x1, unrestricted double y1, unrestricted double r1);
+  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient>createLinearGradient</a>(double x0, double y0, double x1, double y1);
+  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createradialgradient title=dom-context-2d-createRadialGradient>createRadialGradient</a>(double x0, double y0, double r0, double x1, double y1, double r1);
   <a href=#canvaspattern>CanvasPattern</a> <a href=#dom-context-2d-createpattern title=dom-context-2d-createPattern>createPattern</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, DOMString repetition);
 <!--
   // v8 we received one request from Ralf Richard G&oml;bel for a new kind of pattern: a hatch.
@@ -36855,6 +36855,8 @@
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-getimagedata title=dom-context-2d-getImageData>getImageData</a>(double sx, double sy, double sw, double sh);
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-getimagedatahd title=dom-context-2d-getImageDataHD>getImageDataHD</a>(double sx, double sy, double sw, double sh);
   void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy);
+  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
+  void <a href=#dom-context-2d-putimagedatahd title=dom-context-2d-putImageDataHD>putImageDataHD</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy);
   void <a href=#dom-context-2d-putimagedatahd title=dom-context-2d-putImageDataHD>putImageDataHD</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
 };
 <a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a> implements <a href=#canvasdrawingstyles>CanvasDrawingStyles</a>;
@@ -36896,7 +36898,7 @@
 
 interface <dfn id=canvasgradient>CanvasGradient</dfn> {
   // opaque object
-  void <a href=#dom-canvasgradient-addcolorstop title=dom-canvasgradient-addColorStop>addColorStop</a>(unrestricted double offset, DOMString color);
+  void <a href=#dom-canvasgradient-addcolorstop title=dom-canvasgradient-addColorStop>addColorStop</a>(double offset, DOMString color);
 };
 
 interface <dfn id=canvaspattern>CanvasPattern</dfn> {
@@ -39156,9 +39158,6 @@
     linear gradient that paints along the line given by the
     coordinates represented by the arguments.</p>
 
-    <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#notsupportederror>NotSupportedError</a></code> exception.</p>
-
    </dd>
 
    <dt><var title="">gradient</var> = <var title="">context</var> . <code title=dom-context-2d-createRadialGradient><a href=#dom-context-2d-createradialgradient>createRadialGradient</a></code>(<var title="">x0</var>, <var title="">y0</var>, <var title="">r0</var>, <var title="">x1</var>, <var title="">y1</var>, <var title="">r1</var>)</dt>
@@ -39169,9 +39168,8 @@
     radial gradient that paints along the cone given by the circles
     represented by the arguments.</p>
 
-    <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#notsupportederror>NotSupportedError</a></code> exception. If either of the radii
-    are negative, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
+    <p>If either of the radii are negative, throws an
+    <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
    </dd>
 
@@ -39179,27 +39177,23 @@
 
   <p>The <dfn id=dom-canvasgradient-addcolorstop title=dom-canvasgradient-addColorStop><code>addColorStop(<var title="">offset</var>, <var title="">color</var>)</code></dfn>
   method on the <code><a href=#canvasgradient>CanvasGradient</a></code> interface adds a new stop
-  to a gradient. If the <var title="">offset</var> is less than 0,
-  greater than 1, infinite, or NaN, then an
-  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS <color>
-  value</a>, then a <code><a href=#syntaxerror>SyntaxError</a></code> exception must be
-  thrown. Otherwise, the gradient must have a new stop placed, at
-  offset <var title="">offset</var> relative to the whole gradient,
-  and with the color obtained by parsing <var title="">color</var> as
-  a CSS <color> value. If multiple stops are added at the same
-  offset on a gradient, they must be placed in the order added, with
-  the first one closest to the start of the gradient, and each
-  subsequent one infinitesimally further along towards the end point
-  (in effect causing all but the first and last stop added at each
-  point to be ignored).</p>
+  to a gradient. If the <var title="">offset</var> is less than 0 or
+  greater than 1 then an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be
+  thrown. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a
+  CSS <color> value</a>, then a <code><a href=#syntaxerror>SyntaxError</a></code>
+  exception must be thrown. Otherwise, the gradient must have a new
+  stop placed, at offset <var title="">offset</var> relative to the
+  whole gradient, and with the color obtained by parsing <var title="">color</var> as a CSS <color> value. If multiple stops
+  are added at the same offset on a gradient, they must be placed in
+  the order added, with the first one closest to the start of the
+  gradient, and each subsequent one infinitesimally further along
+  towards the end point (in effect causing all but the first and last
+  stop added at each point to be ignored).</p>
 
   <p>The <dfn id=dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient><code>createLinearGradient(<var title="">x0</var>, <var title="">y0</var>, <var title="">x1</var>,
   <var title="">y1</var>)</code></dfn> method takes four arguments
-  that represent the start point (<var title="">x0</var>, <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><a href=#dom-context-2d-createlineargradient>createLinearGradient()</a></code>
-  are infinite or NaN, the method must throw a
-  <code><a href=#notsupportederror>NotSupportedError</a></code> exception. Otherwise, the method must
-  return a linear <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the
-  specified line.</p>
+  that represent the start point (<var title="">x0</var>, <var title="">y0</var>) and end point (<var title="">x1</var>, <var title="">y1</var>) of the gradient. The method must return a linear
+  <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the specified line.</p>
 
   <p>Linear gradients must be rendered such that all points on a line
   perpendicular to the line that crosses the start and end points have
@@ -39217,12 +39211,11 @@
   first three representing the start circle with origin (<var title="">x0</var>, <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 any of the arguments are infinite or NaN, a
-  <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be thrown. If either
-  of <var title="">r0</var> or <var title="">r1</var> are negative, an
-  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. Otherwise,
-  the method must return a radial <code><a href=#canvasgradient>CanvasGradient</a></code>
-  initialized with the two specified circles.</p>
+  units. If either of <var title="">r0</var> or <var title="">r1</var>
+  are negative, an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be
+  thrown. Otherwise, the method must return a radial
+  <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the two specified
+  circles.</p>
 
   <p>Radial gradients must be rendered by following these steps:</p>
 
@@ -41115,10 +41108,8 @@
     <p>Returns an <code><a href=#imagedata>ImageData</a></code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the
-    arguments are not finite. Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
-    exception if the either of the width or height arguments are
-    zero.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the either
+    of the width or height arguments are zero.</p>
 
     <p>The data will be returned with one pixel of image data for each
     coordinate space unit on the canvas (ignoring transforms).</p>
@@ -41132,10 +41123,8 @@
     <p>Returns an <code><a href=#imagedata>ImageData</a></code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the
-    arguments are not finite. Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
-    exception if the either of the width or height arguments are
-    zero.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the either
+    of the width or height arguments are zero.</p>
 
     <p>The data will be returned at the same resolution as the canvas
     bitmap.</p>

Modified: index
===================================================================
--- index	2012-09-20 22:38:16 UTC (rev 7383)
+++ index	2012-09-20 23:12:42 UTC (rev 7384)
@@ -36796,8 +36796,8 @@
   // colors and styles (see also the <a href=#canvasdrawingstyles>CanvasDrawingStyles</a> interface)
            attribute (DOMString or CanvasGradient or CanvasPattern) <a href=#dom-context-2d-strokestyle title=dom-context-2d-strokeStyle>strokeStyle</a>; // (default black)
            attribute (DOMString or CanvasGradient or CanvasPattern) <a href=#dom-context-2d-fillstyle title=dom-context-2d-fillStyle>fillStyle</a>; // (default black)
-  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient>createLinearGradient</a>(unrestricted double x0, unrestricted double y0, unrestricted double x1, unrestricted double y1);
-  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createradialgradient title=dom-context-2d-createRadialGradient>createRadialGradient</a>(unrestricted double x0, unrestricted double y0, unrestricted double r0, unrestricted double x1, unrestricted double y1, unrestricted double r1);
+  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient>createLinearGradient</a>(double x0, double y0, double x1, double y1);
+  <a href=#canvasgradient>CanvasGradient</a> <a href=#dom-context-2d-createradialgradient title=dom-context-2d-createRadialGradient>createRadialGradient</a>(double x0, double y0, double r0, double x1, double y1, double r1);
   <a href=#canvaspattern>CanvasPattern</a> <a href=#dom-context-2d-createpattern title=dom-context-2d-createPattern>createPattern</a>((<a href=#htmlimageelement>HTMLImageElement</a> or <a href=#htmlcanvaselement>HTMLCanvasElement</a> or <a href=#htmlvideoelement>HTMLVideoElement</a>) image, DOMString repetition);
 <!--
   // v8 we received one request from Ralf Richard G&oml;bel for a new kind of pattern: a hatch.
@@ -36855,6 +36855,8 @@
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-getimagedata title=dom-context-2d-getImageData>getImageData</a>(double sx, double sy, double sw, double sh);
   <a href=#imagedata>ImageData</a> <a href=#dom-context-2d-getimagedatahd title=dom-context-2d-getImageDataHD>getImageDataHD</a>(double sx, double sy, double sw, double sh);
   void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy);
+  void <a href=#dom-context-2d-putimagedata title=dom-context-2d-putImageData>putImageData</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
+  void <a href=#dom-context-2d-putimagedatahd title=dom-context-2d-putImageDataHD>putImageDataHD</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy);
   void <a href=#dom-context-2d-putimagedatahd title=dom-context-2d-putImageDataHD>putImageDataHD</a>(<a href=#imagedata>ImageData</a> imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
 };
 <a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a> implements <a href=#canvasdrawingstyles>CanvasDrawingStyles</a>;
@@ -36896,7 +36898,7 @@
 
 interface <dfn id=canvasgradient>CanvasGradient</dfn> {
   // opaque object
-  void <a href=#dom-canvasgradient-addcolorstop title=dom-canvasgradient-addColorStop>addColorStop</a>(unrestricted double offset, DOMString color);
+  void <a href=#dom-canvasgradient-addcolorstop title=dom-canvasgradient-addColorStop>addColorStop</a>(double offset, DOMString color);
 };
 
 interface <dfn id=canvaspattern>CanvasPattern</dfn> {
@@ -39156,9 +39158,6 @@
     linear gradient that paints along the line given by the
     coordinates represented by the arguments.</p>
 
-    <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#notsupportederror>NotSupportedError</a></code> exception.</p>
-
    </dd>
 
    <dt><var title="">gradient</var> = <var title="">context</var> . <code title=dom-context-2d-createRadialGradient><a href=#dom-context-2d-createradialgradient>createRadialGradient</a></code>(<var title="">x0</var>, <var title="">y0</var>, <var title="">r0</var>, <var title="">x1</var>, <var title="">y1</var>, <var title="">r1</var>)</dt>
@@ -39169,9 +39168,8 @@
     radial gradient that paints along the cone given by the circles
     represented by the arguments.</p>
 
-    <p>If any of the arguments are not finite numbers, throws a
-    <code><a href=#notsupportederror>NotSupportedError</a></code> exception. If either of the radii
-    are negative, throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
+    <p>If either of the radii are negative, throws an
+    <code><a href=#indexsizeerror>IndexSizeError</a></code> exception.</p>
 
    </dd>
 
@@ -39179,27 +39177,23 @@
 
   <p>The <dfn id=dom-canvasgradient-addcolorstop title=dom-canvasgradient-addColorStop><code>addColorStop(<var title="">offset</var>, <var title="">color</var>)</code></dfn>
   method on the <code><a href=#canvasgradient>CanvasGradient</a></code> interface adds a new stop
-  to a gradient. If the <var title="">offset</var> is less than 0,
-  greater than 1, infinite, or NaN, then an
-  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a CSS <color>
-  value</a>, then a <code><a href=#syntaxerror>SyntaxError</a></code> exception must be
-  thrown. Otherwise, the gradient must have a new stop placed, at
-  offset <var title="">offset</var> relative to the whole gradient,
-  and with the color obtained by parsing <var title="">color</var> as
-  a CSS <color> value. If multiple stops are added at the same
-  offset on a gradient, they must be placed in the order added, with
-  the first one closest to the start of the gradient, and each
-  subsequent one infinitesimally further along towards the end point
-  (in effect causing all but the first and last stop added at each
-  point to be ignored).</p>
+  to a gradient. If the <var title="">offset</var> is less than 0 or
+  greater than 1 then an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be
+  thrown. If the <var title="">color</var> cannot be <a href=#parsed-as-a-css-color-value>parsed as a
+  CSS <color> value</a>, then a <code><a href=#syntaxerror>SyntaxError</a></code>
+  exception must be thrown. Otherwise, the gradient must have a new
+  stop placed, at offset <var title="">offset</var> relative to the
+  whole gradient, and with the color obtained by parsing <var title="">color</var> as a CSS <color> value. If multiple stops
+  are added at the same offset on a gradient, they must be placed in
+  the order added, with the first one closest to the start of the
+  gradient, and each subsequent one infinitesimally further along
+  towards the end point (in effect causing all but the first and last
+  stop added at each point to be ignored).</p>
 
   <p>The <dfn id=dom-context-2d-createlineargradient title=dom-context-2d-createLinearGradient><code>createLinearGradient(<var title="">x0</var>, <var title="">y0</var>, <var title="">x1</var>,
   <var title="">y1</var>)</code></dfn> method takes four arguments
-  that represent the start point (<var title="">x0</var>, <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><a href=#dom-context-2d-createlineargradient>createLinearGradient()</a></code>
-  are infinite or NaN, the method must throw a
-  <code><a href=#notsupportederror>NotSupportedError</a></code> exception. Otherwise, the method must
-  return a linear <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the
-  specified line.</p>
+  that represent the start point (<var title="">x0</var>, <var title="">y0</var>) and end point (<var title="">x1</var>, <var title="">y1</var>) of the gradient. The method must return a linear
+  <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the specified line.</p>
 
   <p>Linear gradients must be rendered such that all points on a line
   perpendicular to the line that crosses the start and end points have
@@ -39217,12 +39211,11 @@
   first three representing the start circle with origin (<var title="">x0</var>, <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 any of the arguments are infinite or NaN, a
-  <code><a href=#notsupportederror>NotSupportedError</a></code> exception must be thrown. If either
-  of <var title="">r0</var> or <var title="">r1</var> are negative, an
-  <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be thrown. Otherwise,
-  the method must return a radial <code><a href=#canvasgradient>CanvasGradient</a></code>
-  initialized with the two specified circles.</p>
+  units. If either of <var title="">r0</var> or <var title="">r1</var>
+  are negative, an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception must be
+  thrown. Otherwise, the method must return a radial
+  <code><a href=#canvasgradient>CanvasGradient</a></code> initialized with the two specified
+  circles.</p>
 
   <p>Radial gradients must be rendered by following these steps:</p>
 
@@ -41115,10 +41108,8 @@
     <p>Returns an <code><a href=#imagedata>ImageData</a></code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the
-    arguments are not finite. Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
-    exception if the either of the width or height arguments are
-    zero.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the either
+    of the width or height arguments are zero.</p>
 
     <p>The data will be returned with one pixel of image data for each
     coordinate space unit on the canvas (ignoring transforms).</p>
@@ -41132,10 +41123,8 @@
     <p>Returns an <code><a href=#imagedata>ImageData</a></code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code><a href=#notsupportederror>NotSupportedError</a></code> exception if any of the
-    arguments are not finite. Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code>
-    exception if the either of the width or height arguments are
-    zero.</p>
+    <p>Throws an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception if the either
+    of the width or height arguments are zero.</p>
 
     <p>The data will be returned at the same resolution as the canvas
     bitmap.</p>

Modified: source
===================================================================
--- source	2012-09-20 22:38:16 UTC (rev 7383)
+++ source	2012-09-20 23:12:42 UTC (rev 7384)
@@ -42844,8 +42844,8 @@
   // colors and styles (see also the <span>CanvasDrawingStyles</span> interface)
            attribute (DOMString or CanvasGradient or CanvasPattern) <span title="dom-context-2d-strokeStyle">strokeStyle</span>; // (default black)
            attribute (DOMString or CanvasGradient or CanvasPattern) <span title="dom-context-2d-fillStyle">fillStyle</span>; // (default black)
-  <span>CanvasGradient</span> <span title="dom-context-2d-createLinearGradient">createLinearGradient</span>(unrestricted double x0, unrestricted double y0, unrestricted double x1, unrestricted double y1);
-  <span>CanvasGradient</span> <span title="dom-context-2d-createRadialGradient">createRadialGradient</span>(unrestricted double x0, unrestricted double y0, unrestricted double r0, unrestricted double x1, unrestricted double y1, unrestricted double r1);
+  <span>CanvasGradient</span> <span title="dom-context-2d-createLinearGradient">createLinearGradient</span>(double x0, double y0, double x1, double y1);
+  <span>CanvasGradient</span> <span title="dom-context-2d-createRadialGradient">createRadialGradient</span>(double x0, double y0, double r0, double x1, double y1, double r1);
   <span>CanvasPattern</span> <span title="dom-context-2d-createPattern">createPattern</span>((<span>HTMLImageElement</span> or <span>HTMLCanvasElement</span> or <span>HTMLVideoElement</span>) image, DOMString repetition);
 <!--
   // v8 we received one request from Ralf Richard G&oml;bel for a new kind of pattern: a hatch.
@@ -42903,6 +42903,8 @@
   <span>ImageData</span> <span title="dom-context-2d-getImageData">getImageData</span>(double sx, double sy, double sw, double sh);
   <span>ImageData</span> <span title="dom-context-2d-getImageDataHD">getImageDataHD</span>(double sx, double sy, double sw, double sh);
   void <span title="dom-context-2d-putImageData">putImageData</span>(<span>ImageData</span> imagedata, double dx, double dy);
+  void <span title="dom-context-2d-putImageData">putImageData</span>(<span>ImageData</span> imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
+  void <span title="dom-context-2d-putImageDataHD">putImageDataHD</span>(<span>ImageData</span> imagedata, double dx, double dy);
   void <span title="dom-context-2d-putImageDataHD">putImageDataHD</span>(<span>ImageData</span> imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
 };
 <span>CanvasRenderingContext2D</span> implements <span>CanvasDrawingStyles</span>;
@@ -42944,7 +42946,7 @@
 
 interface <dfn>CanvasGradient</dfn> {
   // opaque object
-  void <span title="dom-canvasgradient-addColorStop">addColorStop</span>(unrestricted double offset, DOMString color);
+  void <span title="dom-canvasgradient-addColorStop">addColorStop</span>(double offset, DOMString color);
 };
 
 interface <dfn>CanvasPattern</dfn> {
@@ -45618,9 +45620,6 @@
     linear gradient that paints along the line given by the
     coordinates represented by the arguments.</p>
 
-    <p>If any of the arguments are not finite numbers, throws a
-    <code>NotSupportedError</code> exception.</p>
-
    </dd>
 
    <dt><var title="">gradient</var> = <var title="">context</var> . <code title="dom-context-2d-createRadialGradient">createRadialGradient</code>(<var title="">x0</var>, <var title="">y0</var>, <var title="">r0</var>, <var title="">x1</var>, <var title="">y1</var>, <var title="">r1</var>)</dt>
@@ -45631,9 +45630,8 @@
     radial gradient that paints along the cone given by the circles
     represented by the arguments.</p>
 
-    <p>If any of the arguments are not finite numbers, throws a
-    <code>NotSupportedError</code> exception. If either of the radii
-    are negative, throws an <code>IndexSizeError</code> exception.</p>
+    <p>If either of the radii are negative, throws an
+    <code>IndexSizeError</code> exception.</p>
 
    </dd>
 
@@ -45645,20 +45643,19 @@
   title="dom-canvasgradient-addColorStop"><code>addColorStop(<var
   title="">offset</var>, <var title="">color</var>)</code></dfn>
   method on the <code>CanvasGradient</code> interface adds a new stop
-  to a gradient. If the <var title="">offset</var> is less than 0,
-  greater than 1, infinite, or NaN, then an
-  <code>IndexSizeError</code> exception must be thrown. If the <var
-  title="">color</var> cannot be <span>parsed as a CSS <color>
-  value</span>, then a <code>SyntaxError</code> exception must be
-  thrown. Otherwise, the gradient must have a new stop placed, at
-  offset <var title="">offset</var> relative to the whole gradient,
-  and with the color obtained by parsing <var title="">color</var> as
-  a CSS <color> value. If multiple stops are added at the same
-  offset on a gradient, they must be placed in the order added, with
-  the first one closest to the start of the gradient, and each
-  subsequent one infinitesimally further along towards the end point
-  (in effect causing all but the first and last stop added at each
-  point to be ignored).</p>
+  to a gradient. If the <var title="">offset</var> is less than 0 or
+  greater than 1 then an <code>IndexSizeError</code> exception must be
+  thrown. If the <var title="">color</var> cannot be <span>parsed as a
+  CSS <color> value</span>, then a <code>SyntaxError</code>
+  exception must be thrown. Otherwise, the gradient must have a new
+  stop placed, at offset <var title="">offset</var> relative to the
+  whole gradient, and with the color obtained by parsing <var
+  title="">color</var> as a CSS <color> value. If multiple stops
+  are added at the same offset on a gradient, they must be placed in
+  the order added, with the first one closest to the start of the
+  gradient, and each subsequent one infinitesimally further along
+  towards the end point (in effect causing all but the first and last
+  stop added at each point to be ignored).</p>
 
   <p>The <dfn
   title="dom-context-2d-createLinearGradient"><code>createLinearGradient(<var
@@ -45666,12 +45663,8 @@
   <var title="">y1</var>)</code></dfn> method takes four arguments
   that represent the start point (<var title="">x0</var>, <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 throw a
-  <code>NotSupportedError</code> exception. Otherwise, the method must
-  return a linear <code>CanvasGradient</code> initialized with the
-  specified line.</p>
+  title="">y1</var>) of the gradient. The method must return a linear
+  <code>CanvasGradient</code> initialized with the specified line.</p>
 
   <p>Linear gradients must be rendered such that all points on a line
   perpendicular to the line that crosses the start and end points have
@@ -45697,12 +45690,11 @@
   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 any of the arguments are infinite or NaN, a
-  <code>NotSupportedError</code> exception must be thrown. If either
-  of <var title="">r0</var> or <var title="">r1</var> are negative, an
-  <code>IndexSizeError</code> exception must be thrown. Otherwise,
-  the method must return a radial <code>CanvasGradient</code>
-  initialized with the two specified circles.</p>
+  units. If either of <var title="">r0</var> or <var title="">r1</var>
+  are negative, an <code>IndexSizeError</code> exception must be
+  thrown. Otherwise, the method must return a radial
+  <code>CanvasGradient</code> initialized with the two specified
+  circles.</p>
 
   <p>Radial gradients must be rendered by following these steps:</p>
 
@@ -47979,10 +47971,8 @@
     <p>Returns an <code>ImageData</code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code>NotSupportedError</code> exception if any of the
-    arguments are not finite. Throws an <code>IndexSizeError</code>
-    exception if the either of the width or height arguments are
-    zero.</p>
+    <p>Throws an <code>IndexSizeError</code> exception if the either
+    of the width or height arguments are zero.</p>
 
     <p>The data will be returned with one pixel of image data for each
     coordinate space unit on the canvas (ignoring transforms).</p>
@@ -47996,10 +47986,8 @@
     <p>Returns an <code>ImageData</code> object containing the image
     data for the given rectangle of the canvas.</p>
 
-    <p>Throws a <code>NotSupportedError</code> exception if any of the
-    arguments are not finite. Throws an <code>IndexSizeError</code>
-    exception if the either of the width or height arguments are
-    zero.</p>
+    <p>Throws an <code>IndexSizeError</code> exception if the either
+    of the width or height arguments are zero.</p>
 
     <p>The data will be returned at the same resolution as the canvas
     bitmap.</p>




More information about the Commit-Watchers mailing list