[html5] r4544 - [e] (0) Splitting out the 2D Context spec. Fixing http://www.w3.org/Bugs/Public/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 7 22:17:14 PST 2010


Author: ianh
Date: 2010-01-07 22:17:12 -0800 (Thu, 07 Jan 2010)
New Revision: 4544

Modified:
   complete.html
   index
   source
Log:
[e] (0) Splitting out the 2D Context spec.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8331

Modified: complete.html
===================================================================
--- complete.html	2010-01-08 01:31:44 UTC (rev 4543)
+++ complete.html	2010-01-08 06:17:12 UTC (rev 4544)
@@ -4479,7 +4479,9 @@
   context</a> has a separate color syntax that also handles
   opacity.</p>
 
+  
 
+
   <h4 id=space-separated-tokens><span class=secno>2.4.7 </span>Space-separated tokens</h4>
 
   <p>A <dfn id=set-of-space-separated-tokens>set of space-separated tokens</dfn> is a string containing
@@ -24045,6 +24047,8 @@
   define their own contexts, which would return different
   objects.</span></p>
 
+  
+
   <div class=impl>
 
   <p>Vendors may also define experimental contexts using the syntax
@@ -24141,16 +24145,21 @@
 
   </div>
 
+  
 
   <h5 id=the-2d-context><span class=secno>4.8.11.1 </span>The 2D context</h5>
+
   <!-- v2: we're on v4. suggestions for next version are marked v5. -->
 
   <p>When the <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext()</a></code>
   method of a <code><a href=#the-canvas-element>canvas</a></code> element is invoked with <dfn id=canvas-context-2d title=canvas-context-2d><code>2d</code></dfn> as the argument, a
   <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object is returned.</p>
 
+  
+
   <div class=impl>
 
+
   <p>There is only one <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object
   per canvas, so calling the <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext()</a></code> method with the
   <code title=canvas-context-2d><a href=#canvas-context-2d>2d</a></code> argument a second time
@@ -26974,8 +26983,9 @@
 
 </script></pre>
 
+  
+  
 
-
   <div class=impl>
 
   <h5 id=color-spaces-and-color-correction><span class=secno>4.8.11.2 </span>Color spaces and color correction</h5>
@@ -26983,10 +26993,10 @@
   <p>The <code><a href=#the-canvas-element>canvas</a></code> APIs must perform color correction at
   only two points: when rendering images with their own gamma
   correction and color space information onto the canvas, to convert
-  the image to the color space used by the canvas (e.g. using the
-  <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method
-  with an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object), and when rendering
-  the actual canvas bitmap to the output device.</p>
+  the image to the color space used by the canvas (e.g. using the 2D
+  Context's <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code>
+  method with an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object), and when
+  rendering the actual canvas bitmap to the output device.</p>
 
   <p class=note>Thus, in the 2D context, colors used to draw shapes
   onto the canvas will exactly match colors obtained through the <code title=dom-context-2d-getImageData><a href=#dom-context-2d-getimagedata>getImageData()</a></code>

Modified: index
===================================================================
--- index	2010-01-08 01:31:44 UTC (rev 4543)
+++ index	2010-01-08 06:17:12 UTC (rev 4544)
@@ -4332,7 +4332,9 @@
   context</a> has a separate color syntax that also handles
   opacity.</p>
 
+  
 
+
   <h4 id=space-separated-tokens><span class=secno>2.4.7 </span>Space-separated tokens</h4>
 
   <p>A <dfn id=set-of-space-separated-tokens>set of space-separated tokens</dfn> is a string containing
@@ -23898,6 +23900,8 @@
   define their own contexts, which would return different
   objects.</span></p>
 
+  
+
   <div class=impl>
 
   <p>Vendors may also define experimental contexts using the syntax
@@ -23994,16 +23998,21 @@
 
   </div>
 
+  
 
   <h5 id=the-2d-context><span class=secno>4.8.11.1 </span>The 2D context</h5>
+
   <!-- v2: we're on v4. suggestions for next version are marked v5. -->
 
   <p>When the <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext()</a></code>
   method of a <code><a href=#the-canvas-element>canvas</a></code> element is invoked with <dfn id=canvas-context-2d title=canvas-context-2d><code>2d</code></dfn> as the argument, a
   <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object is returned.</p>
 
+  
+
   <div class=impl>
 
+
   <p>There is only one <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object
   per canvas, so calling the <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext()</a></code> method with the
   <code title=canvas-context-2d><a href=#canvas-context-2d>2d</a></code> argument a second time
@@ -26827,8 +26836,9 @@
 
 </script></pre>
 
+  
+  
 
-
   <div class=impl>
 
   <h5 id=color-spaces-and-color-correction><span class=secno>4.8.11.2 </span>Color spaces and color correction</h5>
@@ -26836,10 +26846,10 @@
   <p>The <code><a href=#the-canvas-element>canvas</a></code> APIs must perform color correction at
   only two points: when rendering images with their own gamma
   correction and color space information onto the canvas, to convert
-  the image to the color space used by the canvas (e.g. using the
-  <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method
-  with an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object), and when rendering
-  the actual canvas bitmap to the output device.</p>
+  the image to the color space used by the canvas (e.g. using the 2D
+  Context's <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code>
+  method with an <code><a href=#htmlimageelement>HTMLImageElement</a></code> object), and when
+  rendering the actual canvas bitmap to the output device.</p>
 
   <p class=note>Thus, in the 2D context, colors used to draw shapes
   onto the canvas will exactly match colors obtained through the <code title=dom-context-2d-getImageData><a href=#dom-context-2d-getimagedata>getImageData()</a></code>

Modified: source
===================================================================
--- source	2010-01-08 01:31:44 UTC (rev 4543)
+++ source	2010-01-08 06:17:12 UTC (rev 4544)
@@ -3844,11 +3844,15 @@
 
   <hr>
 
+  <!--END html5-->
+
   <p class="note">The <span title="canvas-context-2d">2D graphics
   context</span> has a separate color syntax that also handles
   opacity.</p>
 
+  <!--START html5-->
 
+
   <h4>Space-separated tokens</h4>
 
   <p>A <dfn>set of space-separated tokens</dfn> is a string containing
@@ -25906,6 +25910,8 @@
 
   </dl>
 
+  <!--END html5-->
+
   <p>This specification only defines one context, with the name "<code
   title="canvas-context-2d">2d</code>". <span class="impl">If <code
   title="dom-canvas-getContext">getContext()</code> is called with
@@ -25915,6 +25921,11 @@
   define their own contexts, which would return different
   objects.</span></p>
 
+  <!--START html5-->
+  <!--END complete--><!--END html-->
+  <p>Contexts are defined by other specifications.</p>
+  <!--START complete--><!--START html-->
+
   <div class="impl">
 
   <p>Vendors may also define experimental contexts using the syntax
@@ -26034,8 +26045,10 @@
 
   </div>
 
+  <!--END html5-->
 
   <h5>The 2D context</h5>
+
   <!-- v2: we're on v4. suggestions for next version are marked v5. -->
 
   <p>When the <code title="dom-canvas-getContext">getContext()</code>
@@ -26043,8 +26056,17 @@
   title="canvas-context-2d"><code>2d</code></dfn> as the argument, a
   <code>CanvasRenderingContext2D</code> object is returned.</p>
 
+  <!--START 2dcontext-->
+
   <div class="impl">
 
+  <!--END html--><!--END complete-->
+  <p>When the <code title="dom-canvas-getContext">getContext()</code>
+  method of a <code>canvas</code> element is invoked with <dfn
+  title="canvas-context-2d"><code>2d</code></dfn> as the argument, a
+  <code>CanvasRenderingContext2D</code> object must be returned.</p>
+  <!--START html--><!--START complete-->
+
   <p>There is only one <code>CanvasRenderingContext2D</code> object
   per canvas, so calling the <code
   title="dom-canvas-getContext">getContext()</code> method with the
@@ -29417,8 +29439,9 @@
 
 </script></pre>
 
+  <!--END 2dcontext-->
+  <!--START html5-->
 
-
   <div class="impl">
 
   <h5>Color spaces and color correction</h5>
@@ -29426,10 +29449,10 @@
   <p>The <code>canvas</code> APIs must perform color correction at
   only two points: when rendering images with their own gamma
   correction and color space information onto the canvas, to convert
-  the image to the color space used by the canvas (e.g. using the
-  <code title="dom-context-2d-drawImage">drawImage()</code> method
-  with an <code>HTMLImageElement</code> object), and when rendering
-  the actual canvas bitmap to the output device.</p>
+  the image to the color space used by the canvas (e.g. using the 2D
+  Context's <code title="dom-context-2d-drawImage">drawImage()</code>
+  method with an <code>HTMLImageElement</code> object), and when
+  rendering the actual canvas bitmap to the output device.</p>
 
   <p class="note">Thus, in the 2D context, colors used to draw shapes
   onto the canvas will exactly match colors obtained through the <code
@@ -96457,7 +96480,7 @@
 
 <!--START complete-->
 
-<!--START html-device--><!--START microdata-->
+<!--START html-device--><!--START microdata--><!--START 2dcontext-->
 <!--START websocket-api--><!--START storage--><!--START database--><!--START eventsource--><!--START workers-->
 <!--START vocabs--><!--START vCard--><!--START vEvent--><!--START work-->
 
@@ -97254,7 +97277,7 @@
 
 <!--END vocabs--><!--END vCard--><!--END vEvent--><!--END work-->
 <!--END websocket-api--><!--END storage--><!--END database--><!--END eventsource--><!--END workers-->
-<!--END html-device--><!--END microdata-->
+<!--END html-device--><!--END microdata--><!--END 2dcontext-->
 
 
   <h2 class="no-num">Acknowledgements</h2> <!-- ACKS -->




More information about the Commit-Watchers mailing list