Skip to content

Commit

Permalink
[e] (0) Try to avoid using the term 'array' when it's a sequence.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=18758
Affected topics: Canvas

git-svn-id: http://svn.whatwg.org/webapps@7508 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 6, 2012
1 parent 1e4754a commit bcad317
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 37 deletions.
21 changes: 9 additions & 12 deletions complete.html
Expand Up @@ -37039,7 +37039,7 @@ <h6 id=line-styles><span class=secno>4.8.11.1.4 </span>Line styles</h6>
<dd>

<p>Sets the current line dash pattern (as used when stroking). The
argument is an array of distances for which to alternately have
argument is a list of distances for which to alternately have
the line on and the line off.</p>

</dd>
Expand Down Expand Up @@ -37139,25 +37139,22 @@ <h6 id=line-styles><span class=secno>4.8.11.1.4 </span>Line styles</h6>
<p>When the <dfn id=dom-context-2d-setlinedash title=dom-context-2d-setLineDash><code>setLineDash()</code></dfn>
method is invoked, it must run the following steps:</p>

<ol><li><p>Let <var title="">a</var> be a copy of the array provided as
the argument.</li>
<ol><li><p>Let <var title="">a</var> be the argument.</li>

<li><p>If any value in the array is not finite (e.g. an Infinity or
a NaN value), or if any value is negative (less than zero), then
abort these steps (without throwing an exception; user agents could
show a message on a developer console, though, as that would be
helpful for debugging).</li>
<li><p>If any value in <var title="">a</var> is not finite (e.g. an Infinity or a NaN value), or
if any value is negative (less than zero), then abort these steps (without throwing an exception;
user agents could show a message on a developer console, though, as that would be helpful for
debugging).</li>

<li><p>If the number of elements in <var title="">a</var> is odd,
then let <var title="">a</var> be the concatentation of two copies
of <var title="">a</var>.</li>

<li><p>Let the object's <a href=#dash-list>dash list</a> be <var title="">a</var>.</li>

</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn>
method is invoked, it must return a newly created array whose values
are the values of the object's <a href=#dash-list>dash list</a>, in the same
order.</p>
</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn> method is
invoked, it must return a sequence whose values are the values of the object's <a href=#dash-list>dash
list</a>, in the same order.</p>

<p>It is sometimes useful to change the "phase" of the dash pattern,
e.g. to achieve a "marching ants" effect. The phase can be set using
Expand Down
21 changes: 9 additions & 12 deletions index
Expand Up @@ -37039,7 +37039,7 @@ idea from Mihai:
<dd>

<p>Sets the current line dash pattern (as used when stroking). The
argument is an array of distances for which to alternately have
argument is a list of distances for which to alternately have
the line on and the line off.</p>

</dd>
Expand Down Expand Up @@ -37139,25 +37139,22 @@ idea from Mihai:
<p>When the <dfn id=dom-context-2d-setlinedash title=dom-context-2d-setLineDash><code>setLineDash()</code></dfn>
method is invoked, it must run the following steps:</p>

<ol><li><p>Let <var title="">a</var> be a copy of the array provided as
the argument.</li>
<ol><li><p>Let <var title="">a</var> be the argument.</li>

<li><p>If any value in the array is not finite (e.g. an Infinity or
a NaN value), or if any value is negative (less than zero), then
abort these steps (without throwing an exception; user agents could
show a message on a developer console, though, as that would be
helpful for debugging).</li>
<li><p>If any value in <var title="">a</var> is not finite (e.g. an Infinity or a NaN value), or
if any value is negative (less than zero), then abort these steps (without throwing an exception;
user agents could show a message on a developer console, though, as that would be helpful for
debugging).</li>

<li><p>If the number of elements in <var title="">a</var> is odd,
then let <var title="">a</var> be the concatentation of two copies
of <var title="">a</var>.</li>

<li><p>Let the object's <a href=#dash-list>dash list</a> be <var title="">a</var>.</li>

</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn>
method is invoked, it must return a newly created array whose values
are the values of the object's <a href=#dash-list>dash list</a>, in the same
order.</p>
</ol><p>When the <dfn id=dom-context-2d-getlinedash title=dom-context-2d-getLineDash><code>getLineDash()</code></dfn> method is
invoked, it must return a sequence whose values are the values of the object's <a href=#dash-list>dash
list</a>, in the same order.</p>

<p>It is sometimes useful to change the "phase" of the dash pattern,
e.g. to achieve a "marching ants" effect. The phase can be set using
Expand Down
22 changes: 9 additions & 13 deletions source
Expand Up @@ -43313,7 +43313,7 @@ idea from Mihai:
<dd>

<p>Sets the current line dash pattern (as used when stroking). The
argument is an array of distances for which to alternately have
argument is a list of distances for which to alternately have
the line on and the line off.</p>

</dd>
Expand Down Expand Up @@ -43434,14 +43434,12 @@ idea from Mihai:

<ol>

<li><p>Let <var title="">a</var> be a copy of the array provided as
the argument.</p></li>
<li><p>Let <var title="">a</var> be the argument.</p></li>

<li><p>If any value in the array is not finite (e.g. an Infinity or
a NaN value), or if any value is negative (less than zero), then
abort these steps (without throwing an exception; user agents could
show a message on a developer console, though, as that would be
helpful for debugging).</p></li>
<li><p>If any value in <var title="">a</var> is not finite (e.g. an Infinity or a NaN value), or
if any value is negative (less than zero), then abort these steps (without throwing an exception;
user agents could show a message on a developer console, though, as that would be helpful for
debugging).</p></li>

<li><p>If the number of elements in <var title="">a</var> is odd,
then let <var title="">a</var> be the concatentation of two copies
Expand All @@ -43452,11 +43450,9 @@ idea from Mihai:

</ol>

<p>When the <dfn
title="dom-context-2d-getLineDash"><code>getLineDash()</code></dfn>
method is invoked, it must return a newly created array whose values
are the values of the object's <span>dash list</span>, in the same
order.</p>
<p>When the <dfn title="dom-context-2d-getLineDash"><code>getLineDash()</code></dfn> method is
invoked, it must return a sequence whose values are the values of the object's <span>dash
list</span>, in the same order.</p>

<p>It is sometimes useful to change the "phase" of the dash pattern,
e.g. to achieve a "marching ants" effect. The phase can be set using
Expand Down

0 comments on commit bcad317

Please sign in to comment.