[html5] r5281 - [e] (0) allow context arguemtns on getContext

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 11 13:26:33 PDT 2010


Author: ianh
Date: 2010-08-11 13:26:31 -0700 (Wed, 11 Aug 2010)
New Revision: 5281

Modified:
   complete.html
   index
   source
Log:
[e] (0) allow context arguemtns on getContext

Modified: complete.html
===================================================================
--- complete.html	2010-08-11 18:41:27 UTC (rev 5280)
+++ complete.html	2010-08-11 20:26:31 UTC (rev 5281)
@@ -29489,7 +29489,7 @@
 
   DOMString <a href=#dom-canvas-todataurl title=dom-canvas-toDataURL>toDataURL</a>(in optional DOMString type, in any... args);
 
-  object <a href=#dom-canvas-getcontext title=dom-canvas-getContext>getContext</a>(in DOMString contextId);
+  object <a href=#dom-canvas-getcontext title=dom-canvas-getContext>getContext</a>(in DOMString contextId, in any... args);
 };</pre>
    </dd>
   </dl><p>The <code><a href=#the-canvas-element>canvas</a></code> element provides scripts with a
@@ -29595,12 +29595,13 @@
   context.fillRect(100,0,50,50); // only this square remains</pre>
   </div>
 
-  <hr><dl class=domintro><dt><var title="">context</var> = <var title="">canvas</var> . <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext</a></code>(<var title="">contextId</var>)</dt>
+  <hr><dl class=domintro><dt><var title="">context</var> = <var title="">canvas</var> . <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext</a></code>(<var title="">contextId</var> [, ... ])</dt>
 
    <dd>
 
     <p>Returns an object that exposes an API for drawing on the
-    canvas. The argument specifies the desired API.</p>
+    canvas. The first argument specifies the desired API. Subsequent
+    arguments are handled by that API.</p>
 
 <!--2DCONTEXT-->
 
@@ -29626,12 +29627,12 @@
   that element. When created, a <code><a href=#the-canvas-element>canvas</a></code> element must not
   have a <a href=#primary-context>primary context</a>.</p>
 
-  <p>The <dfn id=dom-canvas-getcontext title=dom-canvas-getContext><code>getContext(<var title="">contextId</var>)</code></dfn> method of the
-  <code><a href=#the-canvas-element>canvas</a></code> element, when invoked, must run the following
-  steps:</p>
+  <p>The <dfn id=dom-canvas-getcontext title=dom-canvas-getContext><code>getContext(<var title="">contextId</var>, <var title="">args...</var>)</code></dfn>
+  method of the <code><a href=#the-canvas-element>canvas</a></code> element, when invoked, must run
+  the following steps:</p>
 
-  <ol><li><p>Let <var title="">contextId</var> be the argument to the
-   method.</li>
+  <ol><li><p>Let <var title="">contextId</var> be the first argument to
+   the method.</li>
 
    <li><p>If <var title="">contextId</var> is not the name of a
    context supported by the user agent, return null and abort these
@@ -29648,7 +29649,8 @@
 
    <li><p>If the <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext()</a></code> method has
    already been invoked on this element for the same <var title="">contextId</var>, return the same object as was returned
-   that time, and abort these steps.</li>
+   that time, and abort these steps. The additional arguments are
+   ignored.</li>
 
    <li><p><dfn id=getcontext-return title=getContext-return>Return a new object for <var title="">contextId</var></dfn>, as defined by the specification
    given for <var title="">contextId</var>'s entry in the <a href=http://wiki.whatwg.org/wiki/CanvasContexts>WHATWG Wiki
@@ -29799,7 +29801,8 @@
 
   <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 is to <a href=#getcontext-return title=getContext-return>return a new object for the <var title="">contextId</var></a> <code title=canvas-context-2d><a href=#canvas-context-2d>2d</a></code>, the user agent must return a
-  new <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object.</p>
+  new <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object. Any additional
+  arguments are ignored.</p>
 
   </div>
 

Modified: index
===================================================================
--- index	2010-08-11 18:41:27 UTC (rev 5280)
+++ index	2010-08-11 20:26:31 UTC (rev 5281)
@@ -29416,7 +29416,7 @@
 
   DOMString <a href=#dom-canvas-todataurl title=dom-canvas-toDataURL>toDataURL</a>(in optional DOMString type, in any... args);
 
-  object <a href=#dom-canvas-getcontext title=dom-canvas-getContext>getContext</a>(in DOMString contextId);
+  object <a href=#dom-canvas-getcontext title=dom-canvas-getContext>getContext</a>(in DOMString contextId, in any... args);
 };</pre>
    </dd>
   </dl><p>The <code><a href=#the-canvas-element>canvas</a></code> element provides scripts with a
@@ -29522,12 +29522,13 @@
   context.fillRect(100,0,50,50); // only this square remains</pre>
   </div>
 
-  <hr><dl class=domintro><dt><var title="">context</var> = <var title="">canvas</var> . <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext</a></code>(<var title="">contextId</var>)</dt>
+  <hr><dl class=domintro><dt><var title="">context</var> = <var title="">canvas</var> . <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext</a></code>(<var title="">contextId</var> [, ... ])</dt>
 
    <dd>
 
     <p>Returns an object that exposes an API for drawing on the
-    canvas. The argument specifies the desired API.</p>
+    canvas. The first argument specifies the desired API. Subsequent
+    arguments are handled by that API.</p>
 
 <!--2DCONTEXT-->
 
@@ -29553,12 +29554,12 @@
   that element. When created, a <code><a href=#the-canvas-element>canvas</a></code> element must not
   have a <a href=#primary-context>primary context</a>.</p>
 
-  <p>The <dfn id=dom-canvas-getcontext title=dom-canvas-getContext><code>getContext(<var title="">contextId</var>)</code></dfn> method of the
-  <code><a href=#the-canvas-element>canvas</a></code> element, when invoked, must run the following
-  steps:</p>
+  <p>The <dfn id=dom-canvas-getcontext title=dom-canvas-getContext><code>getContext(<var title="">contextId</var>, <var title="">args...</var>)</code></dfn>
+  method of the <code><a href=#the-canvas-element>canvas</a></code> element, when invoked, must run
+  the following steps:</p>
 
-  <ol><li><p>Let <var title="">contextId</var> be the argument to the
-   method.</li>
+  <ol><li><p>Let <var title="">contextId</var> be the first argument to
+   the method.</li>
 
    <li><p>If <var title="">contextId</var> is not the name of a
    context supported by the user agent, return null and abort these
@@ -29575,7 +29576,8 @@
 
    <li><p>If the <code title=dom-canvas-getContext><a href=#dom-canvas-getcontext>getContext()</a></code> method has
    already been invoked on this element for the same <var title="">contextId</var>, return the same object as was returned
-   that time, and abort these steps.</li>
+   that time, and abort these steps. The additional arguments are
+   ignored.</li>
 
    <li><p><dfn id=getcontext-return title=getContext-return>Return a new object for <var title="">contextId</var></dfn>, as defined by the specification
    given for <var title="">contextId</var>'s entry in the <a href=http://wiki.whatwg.org/wiki/CanvasContexts>WHATWG Wiki
@@ -29726,7 +29728,8 @@
 
   <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 is to <a href=#getcontext-return title=getContext-return>return a new object for the <var title="">contextId</var></a> <code title=canvas-context-2d><a href=#canvas-context-2d>2d</a></code>, the user agent must return a
-  new <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object.</p>
+  new <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object. Any additional
+  arguments are ignored.</p>
 
   </div>
 

Modified: source
===================================================================
--- source	2010-08-11 18:41:27 UTC (rev 5280)
+++ source	2010-08-11 20:26:31 UTC (rev 5281)
@@ -32233,7 +32233,7 @@
 
   DOMString <span title="dom-canvas-toDataURL">toDataURL</span>(in optional DOMString type, in any... args);
 
-  object <span title="dom-canvas-getContext">getContext</span>(in DOMString contextId);
+  object <span title="dom-canvas-getContext">getContext</span>(in DOMString contextId, in any... args);
 };</pre>
    </dd>
   </dl>
@@ -32351,12 +32351,13 @@
 
   <dl class="domintro">
 
-   <dt><var title="">context</var> = <var title="">canvas</var> . <code title="dom-canvas-getContext">getContext</code>(<var title="">contextId</var>)</dt>
+   <dt><var title="">context</var> = <var title="">canvas</var> . <code title="dom-canvas-getContext">getContext</code>(<var title="">contextId</var> [, ... ])</dt>
 
    <dd>
 
     <p>Returns an object that exposes an API for drawing on the
-    canvas. The argument specifies the desired API.</p>
+    canvas. The first argument specifies the desired API. Subsequent
+    arguments are handled by that API.</p>
 
 <!--END w3c-html--><!--2DCONTEXT-->
 
@@ -32391,14 +32392,14 @@
   have a <span>primary context</span>.</p>
 
   <p>The <dfn title="dom-canvas-getContext"><code>getContext(<var
-  title="">contextId</var>)</code></dfn> method of the
-  <code>canvas</code> element, when invoked, must run the following
-  steps:</p>
+  title="">contextId</var>, <var title="">args...</var>)</code></dfn>
+  method of the <code>canvas</code> element, when invoked, must run
+  the following steps:</p>
 
   <ol>
 
-   <li><p>Let <var title="">contextId</var> be the argument to the
-   method.</p></li>
+   <li><p>Let <var title="">contextId</var> be the first argument to
+   the method.</p></li>
 
    <li><p>If <var title="">contextId</var> is not the name of a
    context supported by the user agent, return null and abort these
@@ -32419,7 +32420,8 @@
    title="dom-canvas-getContext">getContext()</code> method has
    already been invoked on this element for the same <var
    title="">contextId</var>, return the same object as was returned
-   that time, and abort these steps.</p></li>
+   that time, and abort these steps. The additional arguments are
+   ignored.</p></li>
 
    <li><p><dfn title="getContext-return">Return a new object for <var
    title="">contextId</var></dfn>, as defined by the specification
@@ -32609,7 +32611,8 @@
   title="getContext-return">return a new object for the <var
   title="">contextId</var></span> <code
   title="canvas-context-2d">2d</code>, the user agent must return a
-  new <code>CanvasRenderingContext2D</code> object.</p>
+  new <code>CanvasRenderingContext2D</code> object. Any additional
+  arguments are ignored.</p>
 
   </div>
 




More information about the Commit-Watchers mailing list