[html5] r3391 - [gow] (2) <canvas> can become origin-dirty through painting of <video>s as well.
whatwg at whatwg.org
whatwg at whatwg.org
Mon Jul 13 02:24:38 PDT 2009
Author: ianh
Date: 2009-07-13 02:24:36 -0700 (Mon, 13 Jul 2009)
New Revision: 3391
Modified:
index
source
Log:
[gow] (2) <canvas> can become origin-dirty through painting of <video>s as well.
Modified: index
===================================================================
--- index 2009-07-13 05:20:18 UTC (rev 3390)
+++ index 2009-07-13 09:24:36 UTC (rev 3391)
@@ -25229,10 +25229,11 @@
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
@@ -25240,10 +25241,11 @@
<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
@@ -25252,10 +25254,11 @@
<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
@@ -46190,6 +46193,21 @@
</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>
Modified: source
===================================================================
--- source 2009-07-13 05:20:18 UTC (rev 3390)
+++ source 2009-07-13 09:24:36 UTC (rev 3391)
@@ -27688,10 +27688,11 @@
<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
@@ -27701,10 +27702,11 @@
<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
@@ -27715,10 +27717,11 @@
<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
@@ -52495,6 +52498,23 @@
</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
More information about the Commit-Watchers
mailing list