[html5] r1162 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 17 01:37:44 PST 2008


Author: ianh
Date: 2008-01-17 01:37:43 -0800 (Thu, 17 Jan 2008)
New Revision: 1162

Modified:
   index
   source
Log:
[e] (1) editorial updates to the shadow algorithm to make it easier to read

Modified: index
===================================================================
--- index	2008-01-17 09:26:41 UTC (rev 1161)
+++ index	2008-01-17 09:37:43 UTC (rev 1162)
@@ -16870,15 +16870,17 @@
 
   <ol>
    <li>
-    <p>Let A be the source image for which a shadow is being created.</p>
+    <p>Let <var title="">A</var> be the source image for which a shadow is
+     being created.</p>
 
    <li>
-    <p>Let B be an infinite transparent black bitmap, with a coordinate space
-     and an origin identical to A.</p>
+    <p>Let <var title="">B</var> be an infinite transparent black bitmap,
+     with a coordinate space and an origin identical to <var
+     title="">A</var>.</p>
 
    <li>
-    <p>Copy the alpha channel of A to B, offset by <code
-     title=dom-context-2d-shadowOffsetX><a
+    <p>Copy the alpha channel of <var title="">A</var> to <var
+     title="">B</var>, offset by <code title=dom-context-2d-shadowOffsetX><a
      href="#shadowoffsetx">shadowOffsetX</a></code> in the positive <var
      title="">x</var> direction, and <code
      title=dom-context-2d-shadowOffsetY><a
@@ -16893,19 +16895,18 @@
      <li>
       <p>If <code title=dom-context-2d-shadowBlur><a
        href="#shadowblur">shadowBlur</a></code> is less than 8, let <var
-       title="">σ</var> be <span><code
+       title="">σ</var> be half the value of <code
        title=dom-context-2d-shadowBlur><a
-       href="#shadowblur">shadowBlur</a></code>/2</span>; otherwise, let <var
-       title="">σ</var> be the square root of <span><code
-       title=dom-context-2d-shadowBlur><a
-       href="#shadowblur">shadowBlur</a></code>*2</span>.
+       href="#shadowblur">shadowBlur</a></code>; otherwise, let <var
+       title="">σ</var> be the square root of multiplying the value of
+       <code title=dom-context-2d-shadowBlur><a
+       href="#shadowblur">shadowBlur</a></code> by 2.
 
      <li>
-      <p>Perform a 2D Gaussian Blur on B, using <var title="">σ</var>
-       as the standard deviation.
+      <p>Perform a 2D Gaussian Blur on <var title="">B</var>, using <var
+       title="">σ</var> as the standard deviation.
      </li>
-     <!-- need
-     a reference for this XXX -->
+     <!-- need a reference for this XXX -->
     </ol>
 
     <p>User agents may limit values of <var title="">σ</var> to an
@@ -16913,19 +16914,20 @@
      limitations during the Gaussian blur operation.</p>
 
    <li>
-    <p>Set the red, green, and blue components of every pixel in B to the
-     red, green, and blue components (respectively) of the color of <code
-     title=dom-context-2d-shadowColor><a
+    <p>Set the red, green, and blue components of every pixel in <var
+     title="">B</var> to the red, green, and blue components (respectively)
+     of the color of <code title=dom-context-2d-shadowColor><a
      href="#shadowcolor">shadowColor</a></code>.</p>
 
    <li>
-    <p>Multiply the alpha component of every pixel in B by the alpha
-     component of the color of <code title=dom-context-2d-shadowColor><a
+    <p>Multiply the alpha component of every pixel in <var title="">B</var>
+     by the alpha component of the color of <code
+     title=dom-context-2d-shadowColor><a
      href="#shadowcolor">shadowColor</a></code>.</p>
 
    <li>
-    <p>The shadow is in the bitmap B, and is rendered as part of the drawing
-     model described below.</p>
+    <p>The shadow is in the bitmap <var title="">B</var>, and is rendered as
+     part of the drawing model described below.</p>
   </ol>
 
   <h6 id=simple><span class=secno>3.14.11.1.7. </span>Simple shapes

Modified: source
===================================================================
--- source	2008-01-17 09:26:41 UTC (rev 1161)
+++ source	2008-01-17 09:37:43 UTC (rev 1162)
@@ -14430,13 +14430,15 @@
 
   <ol>
 
-   <li> <p>Let A be the source image for which a shadow is being
-   created.</p> </li>
+   <li> <p>Let <var title="">A</var> be the source image for which a
+   shadow is being created.</p> </li>
 
-   <li> <p>Let B be an infinite transparent black bitmap, with a
-   coordinate space and an origin identical to A.</p> </li>
+   <li> <p>Let <var title="">B</var> be an infinite transparent black
+   bitmap, with a coordinate space and an origin identical to <var
+   title="">A</var>.</p> </li>
 
-   <li> <p>Copy the alpha channel of A to B, offset by <code
+   <li> <p>Copy the alpha channel of <var title="">A</var> to <var
+   title="">B</var>, offset by <code
    title="dom-context-2d-shadowOffsetX">shadowOffsetX</code> in the
    positive <var title="">x</var> direction, and <code
    title="dom-context-2d-shadowOffsetY">shadowOffsetY</code> in the
@@ -14450,15 +14452,16 @@
 
      <li> <p>If <code
      title="dom-context-2d-shadowBlur">shadowBlur</code> is less than
-     8, let <var title="">σ</var> be <span><code
-     title="dom-context-2d-shadowBlur">shadowBlur</code>/2</span>;
-     otherwise, let <var title="">σ</var> be the square root of
-     <span><code
-     title="dom-context-2d-shadowBlur">shadowBlur</code>*2</span>. </p></li>
+     8, let <var title="">σ</var> be half the value of <code
+     title="dom-context-2d-shadowBlur">shadowBlur</code>; otherwise,
+     let <var title="">σ</var> be the square root of multiplying
+     the value of <code
+     title="dom-context-2d-shadowBlur">shadowBlur</code> by
+     2.</p></li>
 
-     <li> <p>Perform a 2D Gaussian Blur on B, using <var
-     title="">σ</var> as the standard deviation. </li> <!-- need
-     a reference for this XXX -->
+     <li> <p>Perform a 2D Gaussian Blur on <var title="">B</var>,
+     using <var title="">σ</var> as the standard
+     deviation. </li> <!-- need a reference for this XXX -->
 
     </ol>
 
@@ -14468,17 +14471,17 @@
 
    </li>
 
-   <li> <p>Set the red, green, and blue components of every pixel in B
-   to the red, green, and blue components (respectively) of the color
-   of <code title="dom-context-2d-shadowColor">shadowColor</code>.</p>
-   </li>
+   <li> <p>Set the red, green, and blue components of every pixel in
+   <var title="">B</var> to the red, green, and blue components
+   (respectively) of the color of <code
+   title="dom-context-2d-shadowColor">shadowColor</code>.</p> </li>
 
-   <li> <p>Multiply the alpha component of every pixel in B by the
-   alpha component of the color of <code
+   <li> <p>Multiply the alpha component of every pixel in <var
+   title="">B</var> by the alpha component of the color of <code
    title="dom-context-2d-shadowColor">shadowColor</code>.</p> </li>
 
-   <li> <p>The shadow is in the bitmap B, and is rendered as part of
-   the drawing model described below.</p> </li>
+   <li> <p>The shadow is in the bitmap <var title="">B</var>, and is
+   rendered as part of the drawing model described below.</p> </li>
 
   </li>
 




More information about the Commit-Watchers mailing list