Skip to content

Commit

Permalink
[e] (0) Clarify what we mean by 'poster frame' of an animation.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21296
Affected topics: Canvas, DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7847 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 22, 2013
1 parent d0d9b65 commit d9bfbac
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 18 deletions.
16 changes: 10 additions & 6 deletions complete.html
Expand Up @@ -35642,8 +35642,9 @@ <h6 id=image-sources-for-2d-rendering-contexts><span class=secno>4.8.11.2.9 </sp
element's image must be used as the source image.</p>

<p>Specifically, when a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an animated image in an
<code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use the poster frame of the animation, or, if
there is no poster frame, the first frame of the animation, when rendering the image for
<code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use 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, when rendering the image for
<code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> APIs.</p>

<p>When a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code>, then
Expand Down Expand Up @@ -57107,6 +57108,7 @@ <h4 id=the-dialog-element><span class=secno>4.11.7 </span>The <dfn><code>dialog<

</dl><div class=impl>

<!--CLEANUP-->
<p>When the <dfn id=dom-dialog-show title=dom-dialog-show><code>show()</code></dfn>
method is invoked, the user agent must run the following steps:</p>

Expand Down Expand Up @@ -73698,8 +73700,9 @@ <h3 id=images><span class=secno>7.6 </span>Images</h3>

<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the <code><a href=#the-img-element>img</a></code>
element's media data, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
animation's poster frame, or, if there is no poster frame, the first frame of the
image, the <code><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>

<li><p>Return, but continue running these steps asynchronously.</li>
Expand Down Expand Up @@ -73801,8 +73804,9 @@ <h3 id=images><span class=secno>7.6 </span>Images</h3>

<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data read from the
<code><a href=#blob>Blob</a></code> object, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
animation's poster frame, or, if there is no poster frame, the first frame of the
image, the <code><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>

<li><p><a href=#queue-a-task>Queue a task</a> to invoke <var title="">callback</var> with the new
Expand Down
16 changes: 10 additions & 6 deletions index
Expand Up @@ -35642,8 +35642,9 @@ try {
element's image must be used as the source image.</p>

<p>Specifically, when a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an animated image in an
<code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use the poster frame of the animation, or, if
there is no poster frame, the first frame of the animation, when rendering the image for
<code><a href=#htmlimageelement>HTMLImageElement</a></code>, the user agent must use 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, when rendering the image for
<code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code> APIs.</p>

<p>When a <code><a href=#canvasimagesource>CanvasImageSource</a></code> object represents an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code>, then
Expand Down Expand Up @@ -57107,6 +57108,7 @@ dictionary <dfn id=relatedeventinit>RelatedEventInit</dfn> : <a href=#eventinit>

</dl><div class=impl>

<!--CLEANUP-->
<p>When the <dfn id=dom-dialog-show title=dom-dialog-show><code>show()</code></dfn>
method is invoked, the user agent must run the following steps:</p>

Expand Down Expand Up @@ -73698,8 +73700,9 @@ interface <dfn id=imagebitmapfactories>ImageBitmapFactories</dfn> {

<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be a copy of the <code><a href=#the-img-element>img</a></code>
element's media data, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
animation's poster frame, or, if there is no poster frame, the first frame of the
image, the <code><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>

<li><p>Return, but continue running these steps asynchronously.</li>
Expand Down Expand Up @@ -73801,8 +73804,9 @@ interface <dfn id=imagebitmapfactories>ImageBitmapFactories</dfn> {

<li><p>Let the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data be the image data read from the
<code><a href=#blob>Blob</a></code> object, <a href=#cropped-to-the-source-rectangle>cropped to the source rectangle</a>. If this is an animated
image, the <code><a href=#imagebitmap>ImageBitmap</a></code> object's bitmap data must only be taken from the
animation's poster frame, or, if there is no poster frame, the first frame of the
image, the <code><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>

<li><p><a href=#queue-a-task>Queue a task</a> to invoke <var title="">callback</var> with the new
Expand Down
16 changes: 10 additions & 6 deletions source
Expand Up @@ -38738,8 +38738,9 @@ try {
element's image must be used as the source image.</p>

<p>Specifically, when a <code>CanvasImageSource</code> object represents an animated image in an
<code>HTMLImageElement</code>, the user agent must use the poster frame of the animation, or, if
there is no poster frame, the first frame of the animation, when rendering the image for
<code>HTMLImageElement</code>, the user agent must use 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, when rendering the image for
<code>CanvasRenderingContext2D</code> APIs.</p>

<p>When a <code>CanvasImageSource</code> object represents an <code>HTMLVideoElement</code>, then
Expand Down Expand Up @@ -63383,6 +63384,7 @@ dictionary <dfn>RelatedEventInit</dfn> : <span>EventInit</span> {

<div class="impl">

<!--CLEANUP-->
<p>When the <dfn title="dom-dialog-show"><code>show()</code></dfn>
method is invoked, the user agent must run the following steps:</p>

Expand Down Expand Up @@ -82684,8 +82686,9 @@ interface <dfn>ImageBitmapFactories</dfn> {

<li><p>Let the <code>ImageBitmap</code> object's bitmap data be a copy of the <code>img</code>
element's media data, <span>cropped to the source rectangle</span>. If this is an animated
image, the <code>ImageBitmap</code> object's bitmap data must only be taken from the
animation's poster frame, or, if there is no poster frame, the first frame of the
image, the <code>ImageBitmap</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.</p></li>

<li><p>Return, but continue running these steps asynchronously.</p></li>
Expand Down Expand Up @@ -82807,8 +82810,9 @@ interface <dfn>ImageBitmapFactories</dfn> {

<li><p>Let the <code>ImageBitmap</code> object's bitmap data be the image data read from the
<code>Blob</code> object, <span>cropped to the source rectangle</span>. If this is an animated
image, the <code>ImageBitmap</code> object's bitmap data must only be taken from the
animation's poster frame, or, if there is no poster frame, the first frame of the
image, the <code>ImageBitmap</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.</p></li>

<li><p><span>Queue a task</span> to invoke <var title="">callback</var> with the new
Expand Down

0 comments on commit d9bfbac

Please sign in to comment.