[html5] r8072 - [giow] (3) clip() and resetClip() were defined in a bogus way. Affected topics: [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 18 10:19:14 PDT 2013


Author: ianh
Date: 2013-07-18 10:19:12 -0700 (Thu, 18 Jul 2013)
New Revision: 8072

Modified:
   complete.html
   index
   source
Log:
[giow] (3) clip() and resetClip() were defined in a bogus way.
Affected topics: Canvas, HTML

Modified: complete.html
===================================================================
--- complete.html	2013-07-18 17:13:37 UTC (rev 8071)
+++ complete.html	2013-07-18 17:19:12 UTC (rev 8072)
@@ -37283,8 +37283,7 @@
   be implicitly closed when computing the clipping region, without affecting the actual subpaths.
   The new clipping region replaces the current clipping region.</p>
 
-  <p>When the context is initialized, the clipping region must be set to the rectangle with the top
-  left corner at (0,0) and the width and height of the coordinate space.</p>
+  <p>When the context is initialized, the clipping region must be set to the largest infinite surface (i.e. by default, no clipping occurs).</p>
 
   <!-- v6
    Jordan OSETE suggests:
@@ -37294,9 +37293,7 @@
   -->
 
   <p>The <dfn id=dom-context-2d-resetclip title=dom-context-2d-resetClip><code>resetClip()</code></dfn>
-  method must create a new <a href=#clipping-region>clipping region</a> that is the
-  rectangle with the top left corner at (0,0) and the width and height
-  of the coordinate space. The new clipping region replaces the
+  method must create a new <a href=#clipping-region>clipping region</a> that is the largest infinite surface. The new clipping region replaces the
   current clipping region.</p>
 
   <hr><p>The <dfn id=dom-context-2d-ispointinpath title=dom-context-2d-isPointInPath><code>isPointInPath()</code></dfn>
@@ -38932,11 +38929,14 @@
    <li><p>Composite <var title="">A</var> within the <a href=#clipping-region>clipping region</a> over the current
    <a href=#scratch-bitmap>scratch bitmap</a> using the current composition operator.</li>
 
-  </ol></div>
+  </ol><p>When compositing onto the <a href=#scratch-bitmap>scratch bitmap</a>, pixels that would fall outside of the
+  <a href=#scratch-bitmap>scratch bitmap</a> must be discarded.</p>
 
+  </div>
 
 
 
+
   <h6 id=best-practices><span class=secno>4.8.11.2.21 </span>Best practices</h6>
 
   <p><i>This section is non-normative.</i></p>
@@ -103948,6 +103948,7 @@
   Dimitri Glazkov,
   Dimitry Golubovsky,
   Dirk Pranke,
+  Dirk Schulze,
   Dirkjan Ochtman,
   Divya Manian,
   Dmitry Titov,

Modified: index
===================================================================
--- index	2013-07-18 17:13:37 UTC (rev 8071)
+++ index	2013-07-18 17:19:12 UTC (rev 8072)
@@ -37283,8 +37283,7 @@
   be implicitly closed when computing the clipping region, without affecting the actual subpaths.
   The new clipping region replaces the current clipping region.</p>
 
-  <p>When the context is initialized, the clipping region must be set to the rectangle with the top
-  left corner at (0,0) and the width and height of the coordinate space.</p>
+  <p>When the context is initialized, the clipping region must be set to the largest infinite surface (i.e. by default, no clipping occurs).</p>
 
   <!-- v6
    Jordan OSETE suggests:
@@ -37294,9 +37293,7 @@
   -->
 
   <p>The <dfn id=dom-context-2d-resetclip title=dom-context-2d-resetClip><code>resetClip()</code></dfn>
-  method must create a new <a href=#clipping-region>clipping region</a> that is the
-  rectangle with the top left corner at (0,0) and the width and height
-  of the coordinate space. The new clipping region replaces the
+  method must create a new <a href=#clipping-region>clipping region</a> that is the largest infinite surface. The new clipping region replaces the
   current clipping region.</p>
 
   <hr><p>The <dfn id=dom-context-2d-ispointinpath title=dom-context-2d-isPointInPath><code>isPointInPath()</code></dfn>
@@ -38932,11 +38929,14 @@
    <li><p>Composite <var title="">A</var> within the <a href=#clipping-region>clipping region</a> over the current
    <a href=#scratch-bitmap>scratch bitmap</a> using the current composition operator.</li>
 
-  </ol></div>
+  </ol><p>When compositing onto the <a href=#scratch-bitmap>scratch bitmap</a>, pixels that would fall outside of the
+  <a href=#scratch-bitmap>scratch bitmap</a> must be discarded.</p>
 
+  </div>
 
 
 
+
   <h6 id=best-practices><span class=secno>4.8.11.2.21 </span>Best practices</h6>
 
   <p><i>This section is non-normative.</i></p>
@@ -103948,6 +103948,7 @@
   Dimitri Glazkov,
   Dimitry Golubovsky,
   Dirk Pranke,
+  Dirk Schulze,
   Dirkjan Ochtman,
   Divya Manian,
   Dmitry Titov,

Modified: source
===================================================================
--- source	2013-07-18 17:13:37 UTC (rev 8071)
+++ source	2013-07-18 17:19:12 UTC (rev 8072)
@@ -40676,8 +40676,7 @@
   be implicitly closed when computing the clipping region, without affecting the actual subpaths.
   The new clipping region replaces the current clipping region.</p>
 
-  <p>When the context is initialized, the clipping region must be set to the rectangle with the top
-  left corner at (0,0) and the width and height of the coordinate space.</p>
+  <p>When the context is initialized, the clipping region must be set to the largest infinite surface (i.e. by default, no clipping occurs).</p>
 
   <!-- v6
    Jordan OSETE suggests:
@@ -40688,9 +40687,7 @@
 
   <p>The <dfn
   title="dom-context-2d-resetClip"><code>resetClip()</code></dfn>
-  method must create a new <span>clipping region</span> that is the
-  rectangle with the top left corner at (0,0) and the width and height
-  of the coordinate space. The new clipping region replaces the
+  method must create a new <span>clipping region</span> that is the largest infinite surface. The new clipping region replaces the
   current clipping region.</p>
 
   <hr>
@@ -42642,6 +42639,9 @@
 
   </ol>
 
+  <p>When compositing onto the <span>scratch bitmap</span>, pixels that would fall outside of the
+  <span>scratch bitmap</span> must be discarded.</p>
+
   </div>
 
 
@@ -116548,6 +116548,7 @@
   Dimitri Glazkov,
   Dimitry Golubovsky,
   Dirk Pranke,
+  Dirk Schulze,
   Dirkjan Ochtman,
   Divya Manian,
   Dmitry Titov,




More information about the Commit-Watchers mailing list