Skip to content

Commit

Permalink
[gow] (2) drawImage() and createPattern() no longer throw an exceptio…
Browse files Browse the repository at this point in the history
…n if the image isn't ready.

git-svn-id: http://svn.whatwg.org/webapps@3685 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 28, 2009
1 parent d2331af commit 2cc2b71
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 50 deletions.
31 changes: 6 additions & 25 deletions index
Expand Up @@ -24297,16 +24297,11 @@ idea from Mihai:
<!-- 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
Expand Down Expand Up @@ -25639,25 +25634,11 @@ v4DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
<!-- 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
Expand Down
31 changes: 6 additions & 25 deletions source
Expand Up @@ -26565,18 +26565,13 @@ idea from Mihai:

<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
Expand Down Expand Up @@ -28161,27 +28156,13 @@ v4DVT (also check for '- -' bits in the part above) -->

<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
Expand Down

0 comments on commit 2cc2b71

Please sign in to comment.