hixie: <canvas> can become origin-dirty through painting of <video>s as well. (whatwg r3391)

hixie: <canvas> can become origin-dirty through painting of <video>s as
well. (whatwg r3391)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2521&r2=1.2522&f=h
http://html5.org/tools/web-apps-tracker?from=3390&to=3391

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2521
retrieving revision 1.2522
diff -u -d -r1.2521 -r1.2522
--- Overview.html 13 Jul 2009 05:20:24 -0000 1.2521
+++ Overview.html 13 Jul 2009 09:24:42 -0000 1.2522
@@ -22310,10 +22310,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
@@ -22321,10 +22322,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
@@ -22333,10 +22335,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
@@ -41419,6 +41422,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>

Received on Monday, 13 July 2009 09:25:47 UTC