[html5] r8783 - [giow] (1) Fix IDL blocks due to my misunderstanding what 'optional' meant Fixin [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Sep 17 15:43:07 PDT 2014


Author: ianh
Date: 2014-09-17 15:43:04 -0700 (Wed, 17 Sep 2014)
New Revision: 8783

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Fix IDL blocks due to my misunderstanding what 'optional' meant
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26562
Affected topics: Canvas

Modified: complete.html
===================================================================
--- complete.html	2014-09-17 20:42:09 UTC (rev 8782)
+++ complete.html	2014-09-17 22:43:04 UTC (rev 8783)
@@ -46177,7 +46177,9 @@
   boolean <a href=#dom-canvasrenderingcontext2dsettings-alpha id=2dcontext:dom-canvasrenderingcontext2dsettings-alpha>alpha</a> = true;
 }
 
-[<a href=#dom-context-2d id=2dcontext:dom-context-2d>Constructor</a>(optional unsigned long width, unsigned long height), Exposed=(Window,Worker)]
+[<a href=#dom-context-2d id=2dcontext:dom-context-2d>Constructor</a>(),
+ <a href=#dom-context-2d id=2dcontext:dom-context-2d-2>Constructor</a>(unsigned long width, unsigned long height),
+ Exposed=(Window,Worker)]
 interface <dfn id=canvasrenderingcontext2d>CanvasRenderingContext2D</dfn> {
 
   // back-reference to the canvas
@@ -46389,7 +46391,7 @@
     <p>If the <code id=2dcontext:dom-canvasrenderingcontext2dsettings-alpha-3><a href=#dom-canvasrenderingcontext2dsettings-alpha>alpha</a></code> setting is
     provided and set to false, then the canvas is forced to always be opaque.</p>
 
-   <dt><var>context</var> = new <code id=2dcontext:dom-context-2d-2><a href=#dom-context-2d>CanvasRenderingContext2D</a></code>( [ <var>width</var>, <var>height</var> ] )<dd>
+   <dt><var>context</var> = new <code id=2dcontext:dom-context-2d-3><a href=#dom-context-2d>CanvasRenderingContext2D</a></code>( [ <var>width</var>, <var>height</var> ] )<dd>
 
     <p>Returns an unbound <code id=2dcontext:canvasrenderingcontext2d-5><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object with an implied bitmap with
     the given dimensions in CSS pixels (300x150, if the arguments are omitted).</p>
@@ -46415,7 +46417,7 @@
   
 
   <p>A <code id=2dcontext:canvasrenderingcontext2d-6><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object can be obtained in two ways: the <code id=2dcontext:dom-canvas-getcontext-3><a href=#dom-canvas-getcontext>getContext()</a></code> method on a <code id=2dcontext:the-canvas-element-4><a href=#the-canvas-element>canvas</a></code> element (which
-  invokes the <a href=#2d-context-creation-algorithm id=2dcontext:2d-context-creation-algorithm>2D context creation algorithm</a>), and the <code id=2dcontext:dom-context-2d-3><a href=#dom-context-2d>CanvasRenderingContext2D()</a></code> constructor.</p>
+  invokes the <a href=#2d-context-creation-algorithm id=2dcontext:2d-context-creation-algorithm>2D context creation algorithm</a>), and the <code id=2dcontext:dom-context-2d-4><a href=#dom-context-2d>CanvasRenderingContext2D()</a></code> constructor.</p>
 
   <p>A <code id=2dcontext:canvasrenderingcontext2d-7><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object has a <dfn id=scratch-bitmap>scratch bitmap</dfn> and can be bound
   to an <dfn id=output-bitmap>output bitmap</dfn>. These are initialised when the object is created, and can be
@@ -65748,7 +65750,8 @@
 
 [NoInterfaceObject, Exposed=(Window,Worker)]
 interface <dfn id=imagebitmapfactories>ImageBitmapFactories</dfn> {
-  <a href=#promise id=images:promise>Promise</a> <a href=#dom-createimagebitmap id=images:dom-createimagebitmap>createImageBitmap</a>(<a href=#imagebitmapsource id=images:imagebitmapsource>ImageBitmapSource</a> image, optional long sx, long sy, long sw, long sh);
+  <a href=#promise id=images:promise>Promise</a> <a href=#dom-createimagebitmap id=images:dom-createimagebitmap>createImageBitmap</a>(<a href=#imagebitmapsource id=images:imagebitmapsource>ImageBitmapSource</a> image);
+  <a href=#promise id=images:promise-2>Promise</a> <a href=#dom-createimagebitmap id=images:dom-createimagebitmap-2>createImageBitmap</a>(<a href=#imagebitmapsource id=images:imagebitmapsource-2>ImageBitmapSource</a> image, long sx, long sy, long sw, long sh);
 };
 <a href=#window id=images:window>Window</a> implements <a href=#imagebitmapfactories id=images:imagebitmapfactories>ImageBitmapFactories</a>;
 <a href=#workerglobalscope id=images:workerglobalscope>WorkerGlobalScope</a> implements <a href=#imagebitmapfactories id=images:imagebitmapfactories-2>ImageBitmapFactories</a>;</pre>
@@ -65761,12 +65764,12 @@
   I/O, then the latency is probably undue; whereas if it only requires a blocking read from a GPU or
   system RAM, the latency is probably acceptable.</p>
 
-  <dl class=domintro><dt><var>promise</var> = <var>Window</var> . <code id=images:dom-createimagebitmap-2><a href=#dom-createimagebitmap>createImageBitmap</a></code>(<var>image</var> [, <var>sx</var>, <var>sy</var>, <var>sw</var>, <var>sh</var> ] )<dd>
+  <dl class=domintro><dt><var>promise</var> = <var>Window</var> . <code id=images:dom-createimagebitmap-3><a href=#dom-createimagebitmap>createImageBitmap</a></code>(<var>image</var> [, <var>sx</var>, <var>sy</var>, <var>sw</var>, <var>sh</var> ] )<dd>
 
     <p>Takes <var>image</var>, which can be an <code id=images:the-img-element><a href=#the-img-element>img</a></code> element,
     <code id=images:the-video-element><a href=#the-video-element>video</a></code>, or <code id=images:the-canvas-element><a href=#the-canvas-element>canvas</a></code> element, a <code id=images:blob-2><a href=#blob>Blob</a></code> object, an
     <code id=images:imagedata-2><a href=#imagedata>ImageData</a></code> object, a <code id=images:canvasrenderingcontext2d-2><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object, or another
-    <code id=images:imagebitmap-3><a href=#imagebitmap>ImageBitmap</a></code> object, and returns a <code id=images:promise-2><a href=#promise>Promise</a></code> that is resolved when a
+    <code id=images:imagebitmap-3><a href=#imagebitmap>ImageBitmap</a></code> object, and returns a <code id=images:promise-3><a href=#promise>Promise</a></code> that is resolved when a
     new <code id=images:imagebitmap-4><a href=#imagebitmap>ImageBitmap</a></code> is created.</p>
 
     <p>If no <code id=images:imagebitmap-5><a href=#imagebitmap>ImageBitmap</a></code> object can be constructed, for example because the provided
@@ -65821,8 +65824,8 @@
      image, the <code id=images:imagebitmap-11><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
      image of the animation (the one that the format defines is to be used when animation is not
      supported or is disabled), or, if there is no such image, the first frame of the
-     animation.<li><p>Return a new <code id=images:promise-3><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill>Fulfill</a> the <code id=images:promise-4><a href=#promise>Promise</a></code>'s
+     animation.<li><p>Return a new <code id=images:promise-4><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill>Fulfill</a> the <code id=images:promise-5><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver>resolver</a>, with the new
      <code id=images:imagebitmap-12><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65839,8 +65842,8 @@
      <a href=#current-playback-position id=images:current-playback-position>current playback position</a>, at the <a href=#media-resource id=images:media-resource>media resource</a>'s <a href=#concept-video-intrinsic-width id=images:concept-video-intrinsic-width>intrinsic width</a> and <a href=#concept-video-intrinsic-height id=images:concept-video-intrinsic-height>intrinsic height</a> (i.e. after any aspect-ratio
      correction has been applied), <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-2>cropped to the source rectangle</a>.</p>
 
-     <li><p>Return a new <code id=images:promise-5><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-2>Fulfill</a> the <code id=images:promise-6><a href=#promise>Promise</a></code>'s
+     <li><p>Return a new <code id=images:promise-6><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-2>Fulfill</a> the <code id=images:promise-7><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-2>resolver</a>, with the new
      <code id=images:imagebitmap-15><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65854,7 +65857,7 @@
      vertical dimension equal to zero, then throw an <code id=images:invalidstateerror-7><a href=#invalidstateerror>InvalidStateError</a></code> exception and
      abort these steps.<li><p>Create a new <code id=images:imagebitmap-16><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-17><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the
      <code id=images:the-canvas-element-6><a href=#the-canvas-element>canvas</a></code> element's bitmap data, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-3>cropped to the source
-     rectangle</a>.<li><p>Return a new <code id=images:promise-7><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-3>Fulfill</a> the <code id=images:promise-8><a href=#promise>Promise</a></code>'s
+     rectangle</a>.<li><p>Return a new <code id=images:promise-8><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-3>Fulfill</a> the <code id=images:promise-9><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-3>resolver</a>, with the new
      <code id=images:imagebitmap-18><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65864,21 +65867,21 @@
 
     <ol><li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
      but zero, throw an <code id=images:indexsizeerror-4><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.<li><p>If the <code id=images:blob-4><a href=#blob>Blob</a></code> object has been disabled through the <code id=images:dom-blob-close><a href=#dom-blob-close>close()</a></code> method, then throw an <code id=images:invalidstateerror-8><a href=#invalidstateerror>InvalidStateError</a></code>
-     exception and abort these steps.<li><p>Return a new <code id=images:promise-9><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p>Read the <code id=images:blob-5><a href=#blob>Blob</a></code> object's data. If an <a href=#file-error-read id=images:file-error-read>error
-     occurs during reading of the object</a>, then <a href=#concept-resolver-reject id=images:concept-resolver-reject>reject</a> the <code id=images:promise-10><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-4>resolver</a>, with null as the value, and abort these
+     exception and abort these steps.<li><p>Return a new <code id=images:promise-10><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p>Read the <code id=images:blob-5><a href=#blob>Blob</a></code> object's data. If an <a href=#file-error-read id=images:file-error-read>error
+     occurs during reading of the object</a>, then <a href=#concept-resolver-reject id=images:concept-resolver-reject>reject</a> the <code id=images:promise-11><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-4>resolver</a>, with null as the value, and abort these
      steps.<li><p>Apply the <a href=https://mimesniff.spec.whatwg.org/#rules-for-sniffing-images-specifically id=images:content-type-sniffing:-image data-x-internal=content-type-sniffing:-image>image sniffing rules</a> to
      determine the file format of the image data, with MIME type of the <code id=images:blob-6><a href=#blob>Blob</a></code> (as given
      by the <code id=images:blob-7><a href=#blob>Blob</a></code> object's <code id=images:dom-blob-type><a href=#dom-blob-type>type</a></code> attribute) giving the
      official type.<li><p>If the image data is not in a supported file format (e.g. it's not actually an image at
      all), or if the image data is corrupted in some fatal way such that the image dimensions cannot
      be obtained, then <a href=#concept-resolver-reject id=images:concept-resolver-reject-2>reject</a> the
-     <code id=images:promise-11><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-5>resolver</a>, with null as
+     <code id=images:promise-12><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-5>resolver</a>, with null as
      the value, and abort these steps.<li><p>Create a new <code id=images:imagebitmap-19><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-20><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data read from the
      <code id=images:blob-8><a href=#blob>Blob</a></code> object, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-4>cropped to the source rectangle</a>. If this is an animated
      image, the <code id=images:imagebitmap-21><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
      image of the animation (the one that the format defines is to be used when animation is not
      supported or is disabled), or, if there is no such image, the first frame of the
-     animation.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-4>Fulfill</a> the <code id=images:promise-12><a href=#promise>Promise</a></code>'s
+     animation.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-4>Fulfill</a> the <code id=images:promise-13><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-6>resolver</a>, with the new
      <code id=images:imagebitmap-22><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65890,7 +65893,7 @@
      but zero, throw an <code id=images:indexsizeerror-5><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.<li><p>If the <var>image</var> object's <code id=images:dom-imagedata-data-2><a href=#dom-imagedata-data>data</a></code>
      attribute has been <a href=#concept-transferable-neutered id=images:concept-transferable-neutered-2>neutered</a>, throw an
      <code id=images:invalidstateerror-9><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.<li><p>Create a new <code id=images:imagebitmap-23><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-24><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data given by the
-     <code id=images:imagedata-5><a href=#imagedata>ImageData</a></code> object, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-5>cropped to the source rectangle</a>.<li><p>Return a new <code id=images:promise-13><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-5>Fulfill</a> the <code id=images:promise-14><a href=#promise>Promise</a></code>'s
+     <code id=images:imagedata-5><a href=#imagedata>ImageData</a></code> object, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-5>cropped to the source rectangle</a>.<li><p>Return a new <code id=images:promise-14><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-5>Fulfill</a> the <code id=images:promise-15><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-7>resolver</a>, with the new
      <code id=images:imagebitmap-25><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65905,8 +65908,8 @@
      either a horizontal dimension or a vertical dimension equal to zero, then throw an
      <code id=images:invalidstateerror-11><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.<li><p>Create a new <code id=images:imagebitmap-26><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-27><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the
      <code id=images:canvasrenderingcontext2d-7><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object's <a href=#scratch-bitmap id=images:scratch-bitmap-3>scratch bitmap</a>, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-6>cropped to
-     the source rectangle</a>.<li><p>Return a new <code id=images:promise-15><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-6>Fulfill</a> the <code id=images:promise-16><a href=#promise>Promise</a></code>'s
+     the source rectangle</a>.<li><p>Return a new <code id=images:promise-16><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-6>Fulfill</a> the <code id=images:promise-17><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-8>resolver</a>, with the new
      <code id=images:imagebitmap-28><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65916,8 +65919,8 @@
 
     <ol><li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
      but zero, throw an <code id=images:indexsizeerror-7><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.<li><p>Create a new <code id=images:imagebitmap-30><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-31><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the <var>image</var> argument's bitmap data, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-7>cropped to the source
-     rectangle</a>.<li><p>Return a new <code id=images:promise-17><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-7>Fulfill</a> the <code id=images:promise-18><a href=#promise>Promise</a></code>'s
+     rectangle</a>.<li><p>Return a new <code id=images:promise-18><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-7>Fulfill</a> the <code id=images:promise-19><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-9>resolver</a>, with the new
      <code id=images:imagebitmap-32><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 

Modified: index
===================================================================
--- index	2014-09-17 20:42:09 UTC (rev 8782)
+++ index	2014-09-17 22:43:04 UTC (rev 8783)
@@ -46177,7 +46177,9 @@
   boolean <a href=#dom-canvasrenderingcontext2dsettings-alpha id=2dcontext:dom-canvasrenderingcontext2dsettings-alpha>alpha</a> = true;
 }
 
-[<a href=#dom-context-2d id=2dcontext:dom-context-2d>Constructor</a>(optional unsigned long width, unsigned long height), Exposed=(Window,Worker)]
+[<a href=#dom-context-2d id=2dcontext:dom-context-2d>Constructor</a>(),
+ <a href=#dom-context-2d id=2dcontext:dom-context-2d-2>Constructor</a>(unsigned long width, unsigned long height),
+ Exposed=(Window,Worker)]
 interface <dfn id=canvasrenderingcontext2d>CanvasRenderingContext2D</dfn> {
 
   // back-reference to the canvas
@@ -46389,7 +46391,7 @@
     <p>If the <code id=2dcontext:dom-canvasrenderingcontext2dsettings-alpha-3><a href=#dom-canvasrenderingcontext2dsettings-alpha>alpha</a></code> setting is
     provided and set to false, then the canvas is forced to always be opaque.</p>
 
-   <dt><var>context</var> = new <code id=2dcontext:dom-context-2d-2><a href=#dom-context-2d>CanvasRenderingContext2D</a></code>( [ <var>width</var>, <var>height</var> ] )<dd>
+   <dt><var>context</var> = new <code id=2dcontext:dom-context-2d-3><a href=#dom-context-2d>CanvasRenderingContext2D</a></code>( [ <var>width</var>, <var>height</var> ] )<dd>
 
     <p>Returns an unbound <code id=2dcontext:canvasrenderingcontext2d-5><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object with an implied bitmap with
     the given dimensions in CSS pixels (300x150, if the arguments are omitted).</p>
@@ -46415,7 +46417,7 @@
   
 
   <p>A <code id=2dcontext:canvasrenderingcontext2d-6><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object can be obtained in two ways: the <code id=2dcontext:dom-canvas-getcontext-3><a href=#dom-canvas-getcontext>getContext()</a></code> method on a <code id=2dcontext:the-canvas-element-4><a href=#the-canvas-element>canvas</a></code> element (which
-  invokes the <a href=#2d-context-creation-algorithm id=2dcontext:2d-context-creation-algorithm>2D context creation algorithm</a>), and the <code id=2dcontext:dom-context-2d-3><a href=#dom-context-2d>CanvasRenderingContext2D()</a></code> constructor.</p>
+  invokes the <a href=#2d-context-creation-algorithm id=2dcontext:2d-context-creation-algorithm>2D context creation algorithm</a>), and the <code id=2dcontext:dom-context-2d-4><a href=#dom-context-2d>CanvasRenderingContext2D()</a></code> constructor.</p>
 
   <p>A <code id=2dcontext:canvasrenderingcontext2d-7><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object has a <dfn id=scratch-bitmap>scratch bitmap</dfn> and can be bound
   to an <dfn id=output-bitmap>output bitmap</dfn>. These are initialised when the object is created, and can be
@@ -65748,7 +65750,8 @@
 
 [NoInterfaceObject, Exposed=(Window,Worker)]
 interface <dfn id=imagebitmapfactories>ImageBitmapFactories</dfn> {
-  <a href=#promise id=images:promise>Promise</a> <a href=#dom-createimagebitmap id=images:dom-createimagebitmap>createImageBitmap</a>(<a href=#imagebitmapsource id=images:imagebitmapsource>ImageBitmapSource</a> image, optional long sx, long sy, long sw, long sh);
+  <a href=#promise id=images:promise>Promise</a> <a href=#dom-createimagebitmap id=images:dom-createimagebitmap>createImageBitmap</a>(<a href=#imagebitmapsource id=images:imagebitmapsource>ImageBitmapSource</a> image);
+  <a href=#promise id=images:promise-2>Promise</a> <a href=#dom-createimagebitmap id=images:dom-createimagebitmap-2>createImageBitmap</a>(<a href=#imagebitmapsource id=images:imagebitmapsource-2>ImageBitmapSource</a> image, long sx, long sy, long sw, long sh);
 };
 <a href=#window id=images:window>Window</a> implements <a href=#imagebitmapfactories id=images:imagebitmapfactories>ImageBitmapFactories</a>;
 <a href=#workerglobalscope id=images:workerglobalscope>WorkerGlobalScope</a> implements <a href=#imagebitmapfactories id=images:imagebitmapfactories-2>ImageBitmapFactories</a>;</pre>
@@ -65761,12 +65764,12 @@
   I/O, then the latency is probably undue; whereas if it only requires a blocking read from a GPU or
   system RAM, the latency is probably acceptable.</p>
 
-  <dl class=domintro><dt><var>promise</var> = <var>Window</var> . <code id=images:dom-createimagebitmap-2><a href=#dom-createimagebitmap>createImageBitmap</a></code>(<var>image</var> [, <var>sx</var>, <var>sy</var>, <var>sw</var>, <var>sh</var> ] )<dd>
+  <dl class=domintro><dt><var>promise</var> = <var>Window</var> . <code id=images:dom-createimagebitmap-3><a href=#dom-createimagebitmap>createImageBitmap</a></code>(<var>image</var> [, <var>sx</var>, <var>sy</var>, <var>sw</var>, <var>sh</var> ] )<dd>
 
     <p>Takes <var>image</var>, which can be an <code id=images:the-img-element><a href=#the-img-element>img</a></code> element,
     <code id=images:the-video-element><a href=#the-video-element>video</a></code>, or <code id=images:the-canvas-element><a href=#the-canvas-element>canvas</a></code> element, a <code id=images:blob-2><a href=#blob>Blob</a></code> object, an
     <code id=images:imagedata-2><a href=#imagedata>ImageData</a></code> object, a <code id=images:canvasrenderingcontext2d-2><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object, or another
-    <code id=images:imagebitmap-3><a href=#imagebitmap>ImageBitmap</a></code> object, and returns a <code id=images:promise-2><a href=#promise>Promise</a></code> that is resolved when a
+    <code id=images:imagebitmap-3><a href=#imagebitmap>ImageBitmap</a></code> object, and returns a <code id=images:promise-3><a href=#promise>Promise</a></code> that is resolved when a
     new <code id=images:imagebitmap-4><a href=#imagebitmap>ImageBitmap</a></code> is created.</p>
 
     <p>If no <code id=images:imagebitmap-5><a href=#imagebitmap>ImageBitmap</a></code> object can be constructed, for example because the provided
@@ -65821,8 +65824,8 @@
      image, the <code id=images:imagebitmap-11><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
      image of the animation (the one that the format defines is to be used when animation is not
      supported or is disabled), or, if there is no such image, the first frame of the
-     animation.<li><p>Return a new <code id=images:promise-3><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill>Fulfill</a> the <code id=images:promise-4><a href=#promise>Promise</a></code>'s
+     animation.<li><p>Return a new <code id=images:promise-4><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill>Fulfill</a> the <code id=images:promise-5><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver>resolver</a>, with the new
      <code id=images:imagebitmap-12><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65839,8 +65842,8 @@
      <a href=#current-playback-position id=images:current-playback-position>current playback position</a>, at the <a href=#media-resource id=images:media-resource>media resource</a>'s <a href=#concept-video-intrinsic-width id=images:concept-video-intrinsic-width>intrinsic width</a> and <a href=#concept-video-intrinsic-height id=images:concept-video-intrinsic-height>intrinsic height</a> (i.e. after any aspect-ratio
      correction has been applied), <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-2>cropped to the source rectangle</a>.</p>
 
-     <li><p>Return a new <code id=images:promise-5><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-2>Fulfill</a> the <code id=images:promise-6><a href=#promise>Promise</a></code>'s
+     <li><p>Return a new <code id=images:promise-6><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-2>Fulfill</a> the <code id=images:promise-7><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-2>resolver</a>, with the new
      <code id=images:imagebitmap-15><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65854,7 +65857,7 @@
      vertical dimension equal to zero, then throw an <code id=images:invalidstateerror-7><a href=#invalidstateerror>InvalidStateError</a></code> exception and
      abort these steps.<li><p>Create a new <code id=images:imagebitmap-16><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-17><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the
      <code id=images:the-canvas-element-6><a href=#the-canvas-element>canvas</a></code> element's bitmap data, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-3>cropped to the source
-     rectangle</a>.<li><p>Return a new <code id=images:promise-7><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-3>Fulfill</a> the <code id=images:promise-8><a href=#promise>Promise</a></code>'s
+     rectangle</a>.<li><p>Return a new <code id=images:promise-8><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-3>Fulfill</a> the <code id=images:promise-9><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-3>resolver</a>, with the new
      <code id=images:imagebitmap-18><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65864,21 +65867,21 @@
 
     <ol><li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
      but zero, throw an <code id=images:indexsizeerror-4><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.<li><p>If the <code id=images:blob-4><a href=#blob>Blob</a></code> object has been disabled through the <code id=images:dom-blob-close><a href=#dom-blob-close>close()</a></code> method, then throw an <code id=images:invalidstateerror-8><a href=#invalidstateerror>InvalidStateError</a></code>
-     exception and abort these steps.<li><p>Return a new <code id=images:promise-9><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p>Read the <code id=images:blob-5><a href=#blob>Blob</a></code> object's data. If an <a href=#file-error-read id=images:file-error-read>error
-     occurs during reading of the object</a>, then <a href=#concept-resolver-reject id=images:concept-resolver-reject>reject</a> the <code id=images:promise-10><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-4>resolver</a>, with null as the value, and abort these
+     exception and abort these steps.<li><p>Return a new <code id=images:promise-10><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p>Read the <code id=images:blob-5><a href=#blob>Blob</a></code> object's data. If an <a href=#file-error-read id=images:file-error-read>error
+     occurs during reading of the object</a>, then <a href=#concept-resolver-reject id=images:concept-resolver-reject>reject</a> the <code id=images:promise-11><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-4>resolver</a>, with null as the value, and abort these
      steps.<li><p>Apply the <a href=https://mimesniff.spec.whatwg.org/#rules-for-sniffing-images-specifically id=images:content-type-sniffing:-image data-x-internal=content-type-sniffing:-image>image sniffing rules</a> to
      determine the file format of the image data, with MIME type of the <code id=images:blob-6><a href=#blob>Blob</a></code> (as given
      by the <code id=images:blob-7><a href=#blob>Blob</a></code> object's <code id=images:dom-blob-type><a href=#dom-blob-type>type</a></code> attribute) giving the
      official type.<li><p>If the image data is not in a supported file format (e.g. it's not actually an image at
      all), or if the image data is corrupted in some fatal way such that the image dimensions cannot
      be obtained, then <a href=#concept-resolver-reject id=images:concept-resolver-reject-2>reject</a> the
-     <code id=images:promise-11><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-5>resolver</a>, with null as
+     <code id=images:promise-12><a href=#promise>Promise</a></code>'s associated <a href=#concept-resolver id=images:concept-resolver-5>resolver</a>, with null as
      the value, and abort these steps.<li><p>Create a new <code id=images:imagebitmap-19><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-20><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data read from the
      <code id=images:blob-8><a href=#blob>Blob</a></code> object, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-4>cropped to the source rectangle</a>. If this is an animated
      image, the <code id=images:imagebitmap-21><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the default
      image of the animation (the one that the format defines is to be used when animation is not
      supported or is disabled), or, if there is no such image, the first frame of the
-     animation.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-4>Fulfill</a> the <code id=images:promise-12><a href=#promise>Promise</a></code>'s
+     animation.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-4>Fulfill</a> the <code id=images:promise-13><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-6>resolver</a>, with the new
      <code id=images:imagebitmap-22><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65890,7 +65893,7 @@
      but zero, throw an <code id=images:indexsizeerror-5><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.<li><p>If the <var>image</var> object's <code id=images:dom-imagedata-data-2><a href=#dom-imagedata-data>data</a></code>
      attribute has been <a href=#concept-transferable-neutered id=images:concept-transferable-neutered-2>neutered</a>, throw an
      <code id=images:invalidstateerror-9><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.<li><p>Create a new <code id=images:imagebitmap-23><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-24><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data given by the
-     <code id=images:imagedata-5><a href=#imagedata>ImageData</a></code> object, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-5>cropped to the source rectangle</a>.<li><p>Return a new <code id=images:promise-13><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-5>Fulfill</a> the <code id=images:promise-14><a href=#promise>Promise</a></code>'s
+     <code id=images:imagedata-5><a href=#imagedata>ImageData</a></code> object, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-5>cropped to the source rectangle</a>.<li><p>Return a new <code id=images:promise-14><a href=#promise>Promise</a></code>, but continue running these steps asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-5>Fulfill</a> the <code id=images:promise-15><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-7>resolver</a>, with the new
      <code id=images:imagebitmap-25><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65905,8 +65908,8 @@
      either a horizontal dimension or a vertical dimension equal to zero, then throw an
      <code id=images:invalidstateerror-11><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.<li><p>Create a new <code id=images:imagebitmap-26><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-27><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the
      <code id=images:canvasrenderingcontext2d-7><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> object's <a href=#scratch-bitmap id=images:scratch-bitmap-3>scratch bitmap</a>, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-6>cropped to
-     the source rectangle</a>.<li><p>Return a new <code id=images:promise-15><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-6>Fulfill</a> the <code id=images:promise-16><a href=#promise>Promise</a></code>'s
+     the source rectangle</a>.<li><p>Return a new <code id=images:promise-16><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-6>Fulfill</a> the <code id=images:promise-17><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-8>resolver</a>, with the new
      <code id=images:imagebitmap-28><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 
@@ -65916,8 +65919,8 @@
 
     <ol><li><p>If either the <var>sw</var> or <var>sh</var> arguments are specified
      but zero, throw an <code id=images:indexsizeerror-7><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.<li><p>Create a new <code id=images:imagebitmap-30><a href=#imagebitmap>ImageBitmap</a></code> object.<li><p>Let the <code id=images:imagebitmap-31><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the <var>image</var> argument's bitmap data, <a href=#cropped-to-the-source-rectangle id=images:cropped-to-the-source-rectangle-7>cropped to the source
-     rectangle</a>.<li><p>Return a new <code id=images:promise-17><a href=#promise>Promise</a></code>, but continue running these steps
-     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-7>Fulfill</a> the <code id=images:promise-18><a href=#promise>Promise</a></code>'s
+     rectangle</a>.<li><p>Return a new <code id=images:promise-18><a href=#promise>Promise</a></code>, but continue running these steps
+     asynchronously.<li><p><a href=#concept-resolver-fulfill id=images:concept-resolver-fulfill-7>Fulfill</a> the <code id=images:promise-19><a href=#promise>Promise</a></code>'s
      associated <a href=#concept-resolver id=images:concept-resolver-9>resolver</a>, with the new
      <code id=images:imagebitmap-32><a href=#imagebitmap>ImageBitmap</a></code> object as the value.</ol>
 

Modified: source
===================================================================
--- source	2014-09-17 20:42:09 UTC (rev 8782)
+++ source	2014-09-17 22:43:04 UTC (rev 8783)
@@ -60056,7 +60056,9 @@
   boolean <span data-x="dom-CanvasRenderingContext2DSettings-alpha">alpha</span> = true;
 }
 
-[<span data-x="dom-context-2d">Constructor</span>(optional unsigned long width, unsigned long height), Exposed=(Window,Worker)]
+[<span data-x="dom-context-2d">Constructor</span>(),
+ <span data-x="dom-context-2d">Constructor</span>(unsigned long width, unsigned long height),
+ Exposed=(Window,Worker)]
 interface <dfn>CanvasRenderingContext2D</dfn> {
 
   // back-reference to the canvas
@@ -89050,7 +89052,8 @@
 
 [NoInterfaceObject, Exposed=(Window,Worker)]
 interface <dfn>ImageBitmapFactories</dfn> {
-  <span>Promise</span> <span data-x="dom-createImageBitmap">createImageBitmap</span>(<span>ImageBitmapSource</span> image, optional long sx, long sy, long sw, long sh);
+  <span>Promise</span> <span data-x="dom-createImageBitmap">createImageBitmap</span>(<span>ImageBitmapSource</span> image);
+  <span>Promise</span> <span data-x="dom-createImageBitmap">createImageBitmap</span>(<span>ImageBitmapSource</span> image, long sx, long sy, long sw, long sh);
 };
 <span>Window</span> implements <span>ImageBitmapFactories</span>;
 <span>WorkerGlobalScope</span> implements <span>ImageBitmapFactories</span>;</pre>



More information about the Commit-Watchers mailing list