Skip to content

Commit

Permalink
[e] (0) oops, defined CanvasPattern twice.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1859 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 10, 2008
1 parent 6e0c245 commit 1116b79
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -19881,8 +19881,8 @@ the time Marco had stuck his tongue out...&lt;/p></pre>
attribute DOMObject <a href="#fillstyle" title=dom-context-2d-fillStyle>fillStyle</a>; // (default black)
<a href="#canvasgradient">CanvasGradient</a> <a href="#createlineargradient" title=dom-context-2d-createLinearGradient>createLinearGradient</a>(in float x0, in float y0, in float x1, in float y1);
<a href="#canvasgradient">CanvasGradient</a> <a href="#createradialgradient" title=dom-context-2d-createRadialGradient>createRadialGradient</a>(in float x0, in float y0, in float r0, in float x1, in float y1, in float r1);
<a href="#canvaspattern0">CanvasPattern</a> <a href="#createpattern" title=dom-context-2d-createPattern>createPattern</a>(in <a href="#htmlimageelement">HTMLImageElement</a> image, in DOMString repetition);
<a href="#canvaspattern0">CanvasPattern</a> <a href="#createpattern" title=dom-context-2d-createPattern>createPattern</a>(in <a href="#htmlcanvaselement">HTMLCanvasElement</a> image, in DOMString repetition);
<a href="#canvaspattern">CanvasPattern</a> <a href="#createpattern" title=dom-context-2d-createPattern>createPattern</a>(in <a href="#htmlimageelement">HTMLImageElement</a> image, in DOMString repetition);
<a href="#canvaspattern">CanvasPattern</a> <a href="#createpattern" title=dom-context-2d-createPattern>createPattern</a>(in <a href="#htmlcanvaselement">HTMLCanvasElement</a> image, in DOMString repetition);

// line caps/joins
attribute float <a href="#linewidth" title=dom-context-2d-lineWidth>lineWidth</a>; // (default 1)
Expand Down Expand Up @@ -20309,24 +20309,24 @@ idea from Mihai:

<p>Both attributes can be either strings, <code><a
href="#canvasgradient">CanvasGradient</a></code>s, or <code><a
href="#canvaspattern0">CanvasPattern</a></code>s. On setting, strings must
href="#canvaspattern">CanvasPattern</a></code>s. On setting, strings must
be parsed as CSS &lt;color&gt; values and the color assigned, and <code><a
href="#canvasgradient">CanvasGradient</a></code> and <code><a
href="#canvaspattern0">CanvasPattern</a></code> objects must be assigned
href="#canvaspattern">CanvasPattern</a></code> objects must be assigned
themselves. <a href="#refsCSS3COLOR">[CSS3COLOR]</a> If the value is a
string but is not a valid color, or is neither a string, a <code><a
href="#canvasgradient">CanvasGradient</a></code>, nor a <code><a
href="#canvaspattern0">CanvasPattern</a></code>, then it must be ignored,
href="#canvaspattern">CanvasPattern</a></code>, then it must be ignored,
and the attribute must retain its previous value.

<p>On getting, if the value is a color, then the <a href="#serialization"
title="serialization of a color">serialization of the color</a> must be
returned. Otherwise, if it is not a color but a <code><a
href="#canvasgradient">CanvasGradient</a></code> or <code><a
href="#canvaspattern0">CanvasPattern</a></code>, then the respective
object must be returned. (Such objects are opaque and therefore only
useful for assigning to other attributes or for comparison to other
gradients or patterns.)
href="#canvaspattern">CanvasPattern</a></code>, then the respective object
must be returned. (Such objects are opaque and therefore only useful for
assigning to other attributes or for comparison to other gradients or
patterns.)

<p>The <dfn id=serialization>serialization of a color</dfn> for a color
value is a string, computed as follows: if it has alpha equal to 1.0, then
Expand Down Expand Up @@ -20507,8 +20507,8 @@ idea from Mihai:
must always return objects when passed valid arguments.</p>
-->

<p>Patterns are represented by objects implementing the opaque <dfn
id=canvaspattern0><code>CanvasPattern</code></dfn> interface.
<p>Patterns are represented by objects implementing the opaque <code><a
href="#canvaspattern">CanvasPattern</a></code> interface.

<p>To create objects of this type, the <dfn id=createpattern
title=dom-context-2d-createPattern><code>createPattern(<var
Expand All @@ -20527,7 +20527,7 @@ idea from Mihai:
then the user agent must raise a <code>SYNTAX_ERR</code> exception. User
agents must recognize the four values described above exactly (e.g. they
must not do case folding). The method must return a <code><a
href="#canvaspattern0">CanvasPattern</a></code> object suitably
href="#canvaspattern">CanvasPattern</a></code> object suitably
initialized.

<p>The <var title="">image</var> argument must be an instance of an
Expand Down Expand Up @@ -22182,7 +22182,7 @@ function AddCloud(data, x, y) { ... }</pre>
<li>
<p>The element's 2D context's <code title=dom-context-2d-fillStyle><a
href="#fillstyle">fillStyle</a></code> attribute is set to a <code><a
href="#canvaspattern0">CanvasPattern</a></code> object that was created
href="#canvaspattern">CanvasPattern</a></code> object that was created
from an <code><a href="#htmlimageelement">HTMLImageElement</a></code>
whose <a href="#origin0">origin</a> was not the <a href="#same-origin"
title="same origin">same</a> as that of the <code>Document</code> object
Expand All @@ -22192,14 +22192,14 @@ function AddCloud(data, x, y) { ... }</pre>
<li>
<p>The element's 2D context's <code title=dom-context-2d-fillStyle><a
href="#fillstyle">fillStyle</a></code> attribute is set to a <code><a
href="#canvaspattern0">CanvasPattern</a></code> object that was created
href="#canvaspattern">CanvasPattern</a></code> object that was created
from an <code><a href="#htmlcanvaselement">HTMLCanvasElement</a></code>
whose <i>origin-clean</i> flag was false when the pattern was created.

<li>
<p>The element's 2D context's <code title=dom-context-2d-strokeStyle><a
href="#strokestyle">strokeStyle</a></code> attribute is set to a
<code><a href="#canvaspattern0">CanvasPattern</a></code> object that was
<code><a href="#canvaspattern">CanvasPattern</a></code> object that was
created from an <code><a
href="#htmlimageelement">HTMLImageElement</a></code> whose <a
href="#origin0">origin</a> was not the <a href="#same-origin"
Expand All @@ -22210,7 +22210,7 @@ function AddCloud(data, x, y) { ... }</pre>
<li>
<p>The element's 2D context's <code title=dom-context-2d-strokeStyle><a
href="#strokestyle">strokeStyle</a></code> attribute is set to a
<code><a href="#canvaspattern0">CanvasPattern</a></code> object that was
<code><a href="#canvaspattern">CanvasPattern</a></code> object that was
created from an <code><a
href="#htmlcanvaselement">HTMLCanvasElement</a></code> whose
<i>origin-clean</i> flag was false when the pattern was created.
Expand Down
2 changes: 1 addition & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -17984,7 +17984,7 @@ idea from Mihai:


<p>Patterns are represented by objects implementing the opaque
<dfn><code>CanvasPattern</code></dfn> interface.</p>
<code>CanvasPattern</code> interface.</p>

<p>To create objects of this type, the <dfn
title="dom-context-2d-createPattern"><code>createPattern(<var
Expand Down

0 comments on commit 1116b79

Please sign in to comment.