[html5] r3023 - [gow] (2) Disable shadows when they're at their default values.

whatwg at whatwg.org whatwg at whatwg.org
Tue Apr 28 23:17:14 PDT 2009


Author: ianh
Date: 2009-04-28 23:17:13 -0700 (Tue, 28 Apr 2009)
New Revision: 3023

Modified:
   index
   source
Log:
[gow] (2) Disable shadows when they're at their default values.

Modified: index
===================================================================
--- index	2009-04-29 05:06:56 UTC (rev 3022)
+++ index	2009-04-29 06:17:13 UTC (rev 3023)
@@ -23448,8 +23448,16 @@
   value is negative, infinite or NaN, in which case the new value must
   be ignored.</p>
 
-  <p>When shadows are drawn, they must be rendered as follows:</p>
+  <p><dfn id=when-shadows-are-drawn title="when shadows are drawn">Shadows are only drawn
+  if</dfn> either the opacity component of the alpha component of the
+  color of <code title=dom-context-2d-shadowColor><a href=#dom-context-2d-shadowcolor>shadowColor</a></code>
+  is non-zero, or the <code title=dom-context-2d-shadowBlur><a href=#dom-context-2d-shadowblur>shadowBlur</a></code> is non-zero, or
+  the <code title=dom-context-2d-shadowOffsetX><a href=#dom-context-2d-shadowoffsetx>shadowOffsetX</a></code>
+  is non-zero, or the <code title=dom-context-2d-shadowOffsetY><a href=#dom-context-2d-shadowoffsety>shadowOffsetY</a></code> is
+  non-zero.</p>
 
+  <p><a href=#when-shadows-are-drawn>When shadows are drawn</a>, they must be rendered as follows:</p>
+
   <ol><li> <p>Let <var title="">A</var> be the source image for which a
    shadow is being created.</p> </li>
 
@@ -24857,18 +24865,19 @@
    and the stroke must itself also be subjected to the current
    transformation matrix.</li>
 
-   <li><p>Render the shadow from image <var title="">A</var>, using
-   the current shadow styles, creating image <var title="">B</var>.</li>
+   <li><p><a href=#when-shadows-are-drawn>When shadows are drawn</a>, render the shadow from
+   image <var title="">A</var>, using the current shadow styles,
+   creating image <var title="">B</var>.</li>
 
-   <li><p>Multiply the alpha component of every pixel in <var title="">B</var> by <code title=dom-context-2d-globalAlpha><a href=#dom-context-2d-globalalpha>globalAlpha</a></code>.</li>
+   <li><p><a href=#when-shadows-are-drawn>When shadows are drawn</a>, multiply the alpha
+   component of every pixel in <var title="">B</var> by <code title=dom-context-2d-globalAlpha><a href=#dom-context-2d-globalalpha>globalAlpha</a></code>.</li>
 
-   <li><p>Within the clipping region, composite <var title="">B</var>
-   over the current canvas bitmap using the current composition
-   operator.</li>
+   <li><p><a href=#when-shadows-are-drawn>When shadows are drawn</a>, composite <var title="">B</var> within the clipping region over the current canvas
+   bitmap using the current composition operator.</li>
 
    <li><p>Multiply the alpha component of every pixel in <var title="">A</var> by <code title=dom-context-2d-globalAlpha><a href=#dom-context-2d-globalalpha>globalAlpha</a></code>.</li>
 
-   <li><p>Within the clipping region, composite <var title="">A</var>
+   <li><p>Composite <var title="">A</var> within the clipping region
    over the current canvas bitmap using the current composition
    operator.</li>
 

Modified: source
===================================================================
--- source	2009-04-29 05:06:56 UTC (rev 3022)
+++ source	2009-04-29 06:17:13 UTC (rev 3023)
@@ -25662,8 +25662,18 @@
   value is negative, infinite or NaN, in which case the new value must
   be ignored.</p>
 
-  <p>When shadows are drawn, they must be rendered as follows:</p>
+  <p><dfn title="when shadows are drawn">Shadows are only drawn
+  if</dfn> either the opacity component of the alpha component of the
+  color of <code title="dom-context-2d-shadowColor">shadowColor</code>
+  is non-zero, or the <code
+  title="dom-context-2d-shadowBlur">shadowBlur</code> is non-zero, or
+  the <code title="dom-context-2d-shadowOffsetX">shadowOffsetX</code>
+  is non-zero, or the <code
+  title="dom-context-2d-shadowOffsetY">shadowOffsetY</code> is
+  non-zero.</p>
 
+  <p><span>When shadows are drawn</span>, they must be rendered as follows:</p>
+
   <ol>
 
    <li> <p>Let <var title="">A</var> be the source image for which a
@@ -27391,23 +27401,23 @@
    and the stroke must itself also be subjected to the current
    transformation matrix.</p></li>
 
-   <li><p>Render the shadow from image <var title="">A</var>, using
-   the current shadow styles, creating image <var
-   title="">B</var>.</p></li>
+   <li><p><span>When shadows are drawn</span>, render the shadow from
+   image <var title="">A</var>, using the current shadow styles,
+   creating image <var title="">B</var>.</p></li>
 
-   <li><p>Multiply the alpha component of every pixel in <var
-   title="">B</var> by <code
+   <li><p><span>When shadows are drawn</span>, multiply the alpha
+   component of every pixel in <var title="">B</var> by <code
    title="dom-context-2d-globalAlpha">globalAlpha</code>.</p></li>
 
-   <li><p>Within the clipping region, composite <var title="">B</var>
-   over the current canvas bitmap using the current composition
-   operator.</p></li>
+   <li><p><span>When shadows are drawn</span>, composite <var
+   title="">B</var> within the clipping region over the current canvas
+   bitmap using the current composition operator.</p></li>
 
    <li><p>Multiply the alpha component of every pixel in <var
    title="">A</var> by <code
    title="dom-context-2d-globalAlpha">globalAlpha</code>.</p></li>
 
-   <li><p>Within the clipping region, composite <var title="">A</var>
+   <li><p>Composite <var title="">A</var> within the clipping region
    over the current canvas bitmap using the current composition
    operator.</p></li>
 




More information about the Commit-Watchers mailing list