W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2011

html5/spec Overview.html,1.5424,1.5425

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 28 Oct 2011 20:08:29 +0000
To: public-html-commits@w3.org
Message-Id: <E1RJsj8-0006vQ-1X@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv26544

Modified Files:
	Overview.html 
Log Message:
Origins should be based on the effective origin. (whatwg r6776)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5424
retrieving revision 1.5425
diff -u -d -r1.5424 -r1.5425
--- Overview.html	28 Oct 2011 00:11:36 -0000	1.5424
+++ Overview.html	28 Oct 2011 20:08:25 -0000	1.5425
@@ -28249,9 +28249,9 @@
   <ul><li><p>The element's 2D context's <code title="dom-context-2d-drawImage">drawImage()</code> method is
    called with an <code><a href="#htmlimageelement">HTMLImageElement</a></code> or an
    <code><a href="#htmlvideoelement">HTMLVideoElement</a></code> whose <a href="#origin">origin</a> is not the
-   <a href="#same-origin" title="same origin">same</a> as that of the
-   <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code>
-   element.</li>
+   <a href="#same-origin" title="same origin">same</a> as the <span>effective
+   origin</span> of the <code><a href="#document">Document</a></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">drawImage()</code> method is
    called with an <code><a href="#htmlcanvaselement">HTMLCanvasElement</a></code> whose
@@ -28261,9 +28261,9 @@
    to a <code>CanvasPattern</code> object that was created from an
    <code><a href="#htmlimageelement">HTMLImageElement</a></code> or an <code><a href="#htmlvideoelement">HTMLVideoElement</a></code>
    whose <a href="#origin">origin</a> was not the <a href="#same-origin" title="same
-   origin">same</a> as that of the <code><a href="#document">Document</a></code> object
-   that owns the <code><a href="#the-canvas-element">canvas</a></code> element when the pattern was
-   created.</li>
+   origin">same</a> as the <span>effective origin</span> of the
+   <code><a href="#document">Document</a></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">fillStyle</code> attribute is set
    to a <code>CanvasPattern</code> object that was created from an
@@ -28274,9 +28274,9 @@
    set to a <code>CanvasPattern</code> object that was created from an
    <code><a href="#htmlimageelement">HTMLImageElement</a></code> or an <code><a href="#htmlvideoelement">HTMLVideoElement</a></code>
    whose <a href="#origin">origin</a> was not the <a href="#same-origin" title="same
-   origin">same</a> as that of the <code><a href="#document">Document</a></code> object
-   that owns the <code><a href="#the-canvas-element">canvas</a></code> element when the pattern was
-   created.</li>
+   origin">same</a> as the <span>effective origin</span> of the
+   <code><a href="#document">Document</a></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">strokeStyle</code> attribute is
    set to a <code>CanvasPattern</code> object that was created from an
@@ -28285,11 +28285,11 @@
 
    <li><p>The element's 2D context's <code title="dom-context-2d-fillText">fillText()</code> or <code title="dom-context-2d-fillText">strokeText()</code> methods are
    invoked and consider using a font that has an <a href="#origin">origin</a>
-   that is not the <a href="#same-origin" title="same origin">same</a> as that of
-   the <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code>
-   element. (The font doesn't even have to be used; all that matters
-   is whether the font was considered for any of the glyphs
-   drawn.)</li> 
+   that is not the <a href="#same-origin" title="same origin">same</a> as the
+   <span>effective origin</span> of the <code><a href="#document">Document</a></code> object
+   that owns the <code><a href="#the-canvas-element">canvas</a></code> element. (The font doesn't even
+   have to be used; all that matters is whether the font was
+   considered for any of the glyphs drawn.)</li> 
   </ul><p>Whenever the <code title="dom-canvas-toDataURL"><a href="#dom-canvas-todataurl">toDataURL()</a></code> method of a
   <code><a href="#the-canvas-element">canvas</a></code> element whose <i>origin-clean</i> flag is set to
   false is called, the method must throw a <code><a href="#securityerror">SecurityError</a></code>
@@ -28304,9 +28304,10 @@
   <p>Whenever the <code title="dom-context-2d-measureText">measureText()</code> method of
   the 2D context of a <code><a href="#the-canvas-element">canvas</a></code> element ends up using a font
   that has an <a href="#origin">origin</a> that is not the <a href="#same-origin" title="same
-  origin">same</a> as that of the <code><a href="#document">Document</a></code> object that
-  owns the <code><a href="#the-canvas-element">canvas</a></code> element, the method must throw a
-  <code><a href="#securityerror">SecurityError</a></code> exception.</p>
+  origin">same</a> as the <span>effective origin</span> of the
+  <code><a href="#document">Document</a></code> object that owns the <code><a href="#the-canvas-element">canvas</a></code>
+  element, the method must throw a <code><a href="#securityerror">SecurityError</a></code>
+  exception.</p>
 
   <p class="note">Even resetting the canvas state by changing its
   <code title="attr-canvas-width"><a href="#attr-canvas-width">width</a></code> or <code title="attr-canvas-height"><a href="#attr-canvas-height">height</a></code> attributes doesn't reset
Received on Friday, 28 October 2011 20:08:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 28 October 2011 20:08:39 GMT