Skip to content

Commit

Permalink
[gow] (2) <canvas> can become origin-dirty through painting of <video…
Browse files Browse the repository at this point in the history
…>s as well.

git-svn-id: http://svn.whatwg.org/webapps@3391 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 13, 2009
1 parent 282cc1e commit 240cef1
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 24 deletions.
42 changes: 30 additions & 12 deletions index
Expand Up @@ -25229,21 +25229,23 @@ function AddCloud(data, x, y) { ... }</pre>
any of the following actions occur:</p>

<ul><li><p>The element's 2D context's <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method is
called with an <code><a href=#htmlimageelement>HTMLImageElement</a></code> whose
<a href=#origin-0>origin</a> is not the <a href=#same-origin title="same
origin">same</a> as that of the <code>Document</code> object
that owns the <code><a href=#the-canvas-element>canvas</a></code> element.</li>
called with an <code><a href=#htmlimageelement>HTMLImageElement</a></code> or an
<code><a href=#htmlvideoelement>HTMLVideoElement</a></code> whose <a href=#origin-0>origin</a> is not the
<a href=#same-origin title="same origin">same</a> as that of the
<code>Document</code> object that owns the <code><a href=#the-canvas-element>canvas</a></code>
element.</li>

<li><p>The element's 2D context's <code title=dom-context-2d-drawImage><a href=#dom-context-2d-drawimage>drawImage()</a></code> method is
called with an <code><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> whose
<i>origin-clean</i> flag is false.</li>

<li><p>The element's 2D context's <code title=dom-context-2d-fillStyle><a href=#dom-context-2d-fillstyle>fillStyle</a></code> attribute is set
to a <code><a href=#canvaspattern>CanvasPattern</a></code> object that was created from an
<code><a href=#htmlimageelement>HTMLImageElement</a></code> whose <a href=#origin-0>origin</a> was not the
<a href=#same-origin title="same origin">same</a> as that of the
<code>Document</code> object that owns the <code><a href=#the-canvas-element>canvas</a></code>
element when the pattern was created.</li>
<code><a href=#htmlimageelement>HTMLImageElement</a></code> or an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code>
whose <a href=#origin-0>origin</a> was not the <a href=#same-origin title="same
origin">same</a> as that of the <code>Document</code> object
that owns the <code><a href=#the-canvas-element>canvas</a></code> element when the pattern was
created.</li>

<li><p>The element's 2D context's <code title=dom-context-2d-fillStyle><a href=#dom-context-2d-fillstyle>fillStyle</a></code> attribute is set
to a <code><a href=#canvaspattern>CanvasPattern</a></code> object that was created from an
Expand All @@ -25252,10 +25254,11 @@ function AddCloud(data, x, y) { ... }</pre>

<li><p>The element's 2D context's <code title=dom-context-2d-strokeStyle><a href=#dom-context-2d-strokestyle>strokeStyle</a></code> attribute is
set to a <code><a href=#canvaspattern>CanvasPattern</a></code> object that was created from an
<code><a href=#htmlimageelement>HTMLImageElement</a></code> whose <a href=#origin-0>origin</a> was not the
<a href=#same-origin title="same origin">same</a> as that of the
<code>Document</code> object that owns the <code><a href=#the-canvas-element>canvas</a></code>
element when the pattern was created.</li>
<code><a href=#htmlimageelement>HTMLImageElement</a></code> or an <code><a href=#htmlvideoelement>HTMLVideoElement</a></code>
whose <a href=#origin-0>origin</a> was not the <a href=#same-origin title="same
origin">same</a> as that of the <code>Document</code> object
that owns the <code><a href=#the-canvas-element>canvas</a></code> element when the pattern was
created.</li>

<li><p>The element's 2D context's <code title=dom-context-2d-strokeStyle><a href=#dom-context-2d-strokestyle>strokeStyle</a></code> attribute is
set to a <code><a href=#canvaspattern>CanvasPattern</a></code> object that was created from an
Expand Down Expand Up @@ -46190,6 +46193,21 @@ interface <dfn id=window>Window</dfn> {

</dd>

<dt>For <code><a href=#audio>audio</a></code> and <code><a href=#video>video</a></code> elements</dt>

<dd>

<p>If value of the <a href=#media-element>media element</a>'s <code title=dom-media-currentSrc><a href=#dom-media-currentsrc>currentSrc</a></code> attribute is the
empty string, the <a href=#origin-0>origin</a> is the same as the
<a href=#origin-0>origin</a> of the element's <code>Document</code>'s
<a href=#origin-0>origin</a>.</p>

<p>Otherwise, the <a href=#origin-0>origin</a> is equal to the
<a href=#origin-0>origin</a> of the <a href=#absolute-url>absolute URL</a> given by the
<a href=#media-element>media element</a>'s <code title=dom-media-currentSrc><a href=#dom-media-currentsrc>currentSrc</a></code> attribute.</p>

</dd>

</dl><p>The <dfn id=unicode-serialization-of-an-origin>Unicode serialization of an origin</dfn> is the string
obtained by applying the following algorithm to the given
<a href=#origin-0>origin</a>:</p>
Expand Down
44 changes: 32 additions & 12 deletions source
Expand Up @@ -27688,10 +27688,11 @@ function AddCloud(data, x, y) { ... }</pre>

<li><p>The element's 2D context's <code
title="dom-context-2d-drawImage">drawImage()</code> method is
called with an <code>HTMLImageElement</code> whose
<span>origin</span> is not the <span title="same
origin">same</span> as that of the <code>Document</code> object
that owns the <code>canvas</code> element.</p></li>
called with an <code>HTMLImageElement</code> or an
<code>HTMLVideoElement</code> whose <span>origin</span> is not the
<span title="same origin">same</span> as that of the
<code>Document</code> object that owns the <code>canvas</code>
element.</p></li>

<li><p>The element's 2D context's <code
title="dom-context-2d-drawImage">drawImage()</code> method is
Expand All @@ -27701,10 +27702,11 @@ function AddCloud(data, x, y) { ... }</pre>
<li><p>The element's 2D context's <code
title="dom-context-2d-fillStyle">fillStyle</code> attribute is set
to a <code>CanvasPattern</code> object that was created from an
<code>HTMLImageElement</code> whose <span>origin</span> was not the
<span title="same origin">same</span> as that of the
<code>Document</code> object that owns the <code>canvas</code>
element when the pattern was created.</p></li>
<code>HTMLImageElement</code> or an <code>HTMLVideoElement</code>
whose <span>origin</span> was not the <span title="same
origin">same</span> as that of the <code>Document</code> object
that owns the <code>canvas</code> element when the pattern was
created.</p></li>

<li><p>The element's 2D context's <code
title="dom-context-2d-fillStyle">fillStyle</code> attribute is set
Expand All @@ -27715,10 +27717,11 @@ function AddCloud(data, x, y) { ... }</pre>
<li><p>The element's 2D context's <code
title="dom-context-2d-strokeStyle">strokeStyle</code> attribute is
set to a <code>CanvasPattern</code> object that was created from an
<code>HTMLImageElement</code> whose <span>origin</span> was not the
<span title="same origin">same</span> as that of the
<code>Document</code> object that owns the <code>canvas</code>
element when the pattern was created.</p></li>
<code>HTMLImageElement</code> or an <code>HTMLVideoElement</code>
whose <span>origin</span> was not the <span title="same
origin">same</span> as that of the <code>Document</code> object
that owns the <code>canvas</code> element when the pattern was
created.</p></li>

<li><p>The element's 2D context's <code
title="dom-context-2d-strokeStyle">strokeStyle</code> attribute is
Expand Down Expand Up @@ -52495,6 +52498,23 @@ interface <dfn>Window</dfn> {

</dd>

<dt>For <code>audio</code> and <code>video</code> elements</dt>

<dd>

<p>If value of the <span>media element</span>'s <code
title="dom-media-currentSrc">currentSrc</code> attribute is the
empty string, the <span>origin</span> is the same as the
<span>origin</span> of the element's <code>Document</code>'s
<span>origin</span>.</p>

<p>Otherwise, the <span>origin</span> is equal to the
<span>origin</span> of the <span>absolute URL</span> given by the
<span>media element</span>'s <code
title="dom-media-currentSrc">currentSrc</code> attribute.</p>

</dd>

</dl>

<p>The <dfn>Unicode serialization of an origin</dfn> is the string
Expand Down

0 comments on commit 240cef1

Please sign in to comment.