[html5] r3685 - [gow] (2) drawImage() and createPattern() no longer throw an exception if the im [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Aug 27 18:03:20 PDT 2009


Author: ianh
Date: 2009-08-27 18:03:18 -0700 (Thu, 27 Aug 2009)
New Revision: 3685

Modified:
   index
   source
Log:
[gow] (2) drawImage() and createPattern() no longer throw an exception if the image isn't ready.

Modified: index
===================================================================
--- index	2009-08-28 00:48:42 UTC (rev 3684)
+++ index	2009-08-28 01:03:18 UTC (rev 3685)
@@ -24297,16 +24297,11 @@
   <!-- drawImage() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an
-  <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, then
-  the implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
-  exception.</p>
-  <!-- drawImage() has an equivalent paragraph -->
-
-  <p>If the <var title="">image</var> argument is an
+  <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, or
+  if the <var title="">image</var> argument is an
   <code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either
   <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code>, then the
-  implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
-  exception.</p>
+  implementation must return null.</p>
   <!-- drawImage() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an
@@ -25639,25 +25634,11 @@
   <!-- createPattern() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an
-  <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, then
-  the implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
-  exception.</p>
-  <!-- createPattern() has an equivalent paragraph -->
-
-  <!-- handled by a later paragraph
-  <p>If the <var title="">image</var> argument is an
-  <code>HTMLCanvasElement</code> object with either a horizontal
-  dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code>INVALID_SIZE_ERR</code>
-  exception.</p>
-  -->
-  <!-- createPattern() has an equivalent paragraph -->
-
-  <p>If the <var title="">image</var> argument is an
+  <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, or
+  if the <var title="">image</var> argument is an
   <code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either
   <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code>, then the
-  implementation must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code>
-  exception.</p>
+  implementation must return without drawing anything.</p>
   <!-- createPattern() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an

Modified: source
===================================================================
--- source	2009-08-28 00:48:42 UTC (rev 3684)
+++ source	2009-08-28 01:03:18 UTC (rev 3685)
@@ -26565,18 +26565,13 @@
 
   <p>If the <var title="">image</var> argument is an
   <code>HTMLImageElement</code> object whose <code
-  title="dom-img-complete">complete</code> attribute is false, then
-  the implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
-  <!-- drawImage() has an equivalent paragraph -->
-
-  <p>If the <var title="">image</var> argument is an
+  title="dom-img-complete">complete</code> attribute is false, or
+  if the <var title="">image</var> argument is an
   <code>HTMLVideoElement</code> object whose <code
   title="dom-media-readyState">readyState</code> attribute is either
   <code title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code> or <code
   title="dom-media-HAVE_METADATA">HAVE_METADATA</code>, then the
-  implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
+  implementation must return null.</p>
   <!-- drawImage() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an
@@ -28161,27 +28156,13 @@
 
   <p>If the <var title="">image</var> argument is an
   <code>HTMLImageElement</code> object whose <code
-  title="dom-img-complete">complete</code> attribute is false, then
-  the implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
-  <!-- createPattern() has an equivalent paragraph -->
-
-  <!-- handled by a later paragraph
-  <p>If the <var title="">image</var> argument is an
-  <code>HTMLCanvasElement</code> object with either a horizontal
-  dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code>INVALID_SIZE_ERR</code>
-  exception.</p>
-  -->
-  <!-- createPattern() has an equivalent paragraph -->
-
-  <p>If the <var title="">image</var> argument is an
+  title="dom-img-complete">complete</code> attribute is false, or
+  if the <var title="">image</var> argument is an
   <code>HTMLVideoElement</code> object whose <code
   title="dom-media-readyState">readyState</code> attribute is either
   <code title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code> or <code
   title="dom-media-HAVE_METADATA">HAVE_METADATA</code>, then the
-  implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
+  implementation must return without drawing anything.</p>
   <!-- createPattern() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an




More information about the Commit-Watchers mailing list