[html5] r1767 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 13 01:12:02 PDT 2008


Author: ianh
Date: 2008-06-13 01:12:01 -0700 (Fri, 13 Jun 2008)
New Revision: 1767

Modified:
   index
   source
Log:
[] (0) Make gradients transform at the right time.

Modified: index
===================================================================
--- index	2008-06-13 03:27:36 UTC (rev 1766)
+++ index	2008-06-13 08:12:01 UTC (rev 1767)
@@ -18846,13 +18846,10 @@
   <p>The <dfn id=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, after
-   being subjected to the <a href="#transformations0"
-   title=dom-context-2d-transformation>current transformation matrix</a>,
-   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
+   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="#createlineargradient">createLinearGradient()</a></code> are
    infinite or NaN, the method must raise a <code>NOT_SUPPORTED_ERR</code>
    exception. Otherwise, the method must return a linear <code><a
@@ -18864,7 +18861,10 @@
    ending point the color at offset 1 is used, and that all points on a line
    perpendicular to the line that crosses the start and end points have the
    color at the point where those two lines cross (with the colors coming
-   from the interpolation described above).
+   from the interpolation described above). The points in the linear gradient
+   must be transformed as described by the <a href="#transformations0"
+   title=dom-context-2d-transformation>current transformation matrix</a> when
+   rendering.
 
   <p>If <span><var title="">x<sub>0</sub></var> = <var
    title="">x<sub>1</sub></var></span> and <span><var
@@ -18889,9 +18889,7 @@
    <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
-   transformation matrix</a>.
+   specified circles.
 
   <p>Radial gradients must be rendered by following these steps:
 
@@ -18954,7 +18952,12 @@
    and areas outside the cone untouched by the gradient (transparent black).
 
   <p>Gradients must be painted only where the relevant stroking or filling
-   effects requires that they be drawn.</p>
+   effects requires that they be drawn.
+
+  <p>The points in the radial gradient must be transformed as described by
+   the <a href="#transformations0"
+   title=dom-context-2d-transformation>current transformation matrix</a> when
+   rendering.</p>
   <!--
   <p>Support for actually painting gradients is optional. Instead of
   painting the gradients, user agents may instead just paint the first

Modified: source
===================================================================
--- source	2008-06-13 03:27:36 UTC (rev 1766)
+++ source	2008-06-13 08:12:01 UTC (rev 1767)
@@ -16444,10 +16444,8 @@
   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, after being subjected to the <span
-  title="dom-context-2d-transformation">current transformation
-  matrix</span>, represent the start point (<var title="">x0</var>,
-  <var title="">y0</var>) and end point (<var title="">x1</var>, <var
+  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 raise a
@@ -16461,7 +16459,9 @@
   all points on a line perpendicular to the line that crosses the
   start and end points have the color at the point where those two
   lines cross (with the colors coming from the interpolation described
-  above).</p>
+  above). The points in the linear gradient must be transformed as
+  described by the <span title="dom-context-2d-transformation">current
+  transformation matrix</span> when rendering.</p>
 
   <p>If <span><var title="">x<sub>0</sub></var> = <var
   title="">x<sub>1</sub></var></span> and <span><var
@@ -16485,9 +16485,7 @@
   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>
+  initialized with the two specified circles.</p>
 
   <p>Radial gradients must be rendered by following these steps:</p>
 
@@ -16558,6 +16556,10 @@
   <p>Gradients must be painted only where the relevant stroking or
   filling effects requires that they be drawn.</p>
 
+  <p>The points in the radial gradient must be transformed as
+  described by the <span title="dom-context-2d-transformation">current
+  transformation matrix</span> when rendering.</p>
+
 <!--
   <p>Support for actually painting gradients is optional. Instead of
   painting the gradients, user agents may instead just paint the first




More information about the Commit-Watchers mailing list