@@ -59962,42 +59962,35 @@ interface <dfn>Path2D</dfn> {
59962
59962
steps:</p>
59963
59963
59964
59964
<ol>
59965
-
59966
59965
<li><p>If the algorithm was passed some arguments, then let <var>arg</var> be the first such
59967
59966
argument. Otherwise, let <var>arg</var> be undefined.</p></li>
59968
59967
59969
59968
<li><p>Let <var>settings</var> be the result of <span data-x="coerce context arguments for
59970
59969
2D">coercing the <var>arg</var> context arguments for 2D</span>.</p></li>
59971
59970
59972
- <li><p>Create a new <code>CanvasRenderingContext2D</code> object.</p></li>
59971
+ <li><p>Let <var>context</var> be a new <code>CanvasRenderingContext2D</code> object.</p></li>
59973
59972
59974
- <li><p>Initialize its <code data-x="dom-context-2d-canvas">canvas</code> attribute to point to
59975
- <var>target</var>.</p></li>
59973
+ <li><p>Initialize <var>context</var>'s <code data-x="dom-context-2d-canvas">canvas</code>
59974
+ attribute to point to <var>target</var>.</p></li>
59976
59975
59977
- <li><p>Let the new <code>CanvasRenderingContext2D</code> object 's <span>output bitmap</span> be
59978
- the same bitmap as <var>target</var>'s bitmap (so that they are shared).</p></li>
59976
+ <li><p>Set <var>context</var> 's <span>output bitmap</span> to the same bitmap as
59977
+ <var>target</var>'s bitmap (so that they are shared).</p></li>
59979
59978
59980
59979
<li><p><span data-x="concept-canvas-set-bitmap-dimensions">Set bitmap dimensions</span> to the
59981
59980
numeric values of <var>target</var>'s <code data-x="attr-canvas-width">width</code> and
59982
59981
<code data-x="attr-canvas-height">height</code> content attributes.</p></li>
59983
59982
59984
59983
<li>
59985
-
59986
59984
<p>Process each of the members of <var>settings</var> as follows:</p>
59987
59985
59988
59986
<dl>
59989
-
59990
59987
<dt><dfn><code data-x="dom-CanvasRenderingContext2DSettings-alpha">alpha</code></dfn></dt>
59991
-
59992
- <dd>If false, then set the new <code>CanvasRenderingContext2D</code> object's <span
59993
- data-x="concept-canvas-alpha">alpha</span> flag to false.</dd>
59994
-
59988
+ <dd>If false, then set <var>context</var>'s <span data-x="concept-canvas-alpha">alpha</span>
59989
+ flag to false.</dd>
59995
59990
</dl>
59996
-
59997
59991
</li>
59998
59992
59999
- <li><p>Return the new <code>CanvasRenderingContext2D</code> object.</p></li>
60000
-
59993
+ <li><p>Return <var>context</var>.</p></li>
60001
59994
</ol>
60002
59995
60003
59996
<hr>
@@ -62591,14 +62584,13 @@ try {
62591
62584
data-x="">repeat-y</code>", or "<code data-x="">no-repeat</code>", then throw a
62592
62585
<span>"<code>SyntaxError</code>"</span> <code>DOMException</code>.</p></li>
62593
62586
62594
- <li><p>Create a new <code>CanvasPattern</code> object with the image <var>image</var>
62595
- and the repetition behavior given by <var>repetition</var>.</p></li>
62587
+ <li><p>Let <var>pattern</var> be a new <code>CanvasPattern</code> object with the image
62588
+ <var>image</var> and the repetition behavior given by <var>repetition</var>.</p></li>
62596
62589
62597
- <li><p>If <var>image</var> <span>is not origin-clean</span>, then mark the
62598
- <code>CanvasPattern</code> object as <dfn data-x="concept-canvas-pattern-not-origin-clean">not
62599
- origin-clean</dfn>.</p></li>
62590
+ <li><p>If <var>image</var> <span>is not origin-clean</span>, then mark <var>pattern</var> as <dfn
62591
+ data-x="concept-canvas-pattern-not-origin-clean">not origin-clean</dfn>.</p></li>
62600
62592
62601
- <li><p>Return the <code>CanvasPattern</code> object .</p></li>
62593
+ <li><p>Return <var>pattern</var> .</p></li>
62602
62594
</ol>
62603
62595
62604
62596
<p>Modifying the <var>image</var> used when creating a <code>CanvasPattern</code> object
@@ -64865,39 +64857,32 @@ dictionary <dfn>ImageBitmapRenderingContextSettings</dfn> {
64865
64857
ImageBitmapRenderingContext">coercing the <var>arg</var> context arguments for
64866
64858
<code>ImageBitmapRenderingContext</code></span>.</p></li>
64867
64859
64868
- <li><p>Create a new <code>ImageBitmapRenderingContext</code> object.</p></li>
64860
+ <li><p>Let <var>context</var> be a new <code>ImageBitmapRenderingContext</code> object.</p></li>
64869
64861
64870
- <li><p>Initialize its <code data-x="dom-context-2d-canvas">canvas</code> attribute to point to
64871
- <var>target</var>.</p></li>
64862
+ <li><p>Initialize <var>context</var>'s <code data-x="dom-context-2d-canvas">canvas</code>
64863
+ attribute to point to <var>target</var>.</p></li>
64872
64864
64873
- <li><p>Let the new <code>ImageBitmapRenderingContext</code> object 's <span
64874
- data-x="concept-ImageBitmapRenderingContext-output-bitmap">output bitmap</span> and
64875
- <var>target</var>'s bitmap be a shared reference to the same bitmap .</p></li>
64865
+ <li><p>Set <var>context</var> 's <span
64866
+ data-x="concept-ImageBitmapRenderingContext-output-bitmap">output bitmap</span> to the same
64867
+ bitmap as <var>target</var>'s bitmap (so that they are shared) .</p></li>
64876
64868
64877
64869
<li><p>Run the steps to <span>set an <code>ImageBitmapRenderingContext</code>'s output
64878
- bitmap</span>, using the new <code>ImageBitmapRenderingContext</code> object as the
64879
- <var>context</var> argument, and with no <var>bitmap</var> argument.</p></li>
64870
+ bitmap</span> with <var>context</var>.</p></li>
64880
64871
64881
64872
<li><p>Initialize <var>context</var>'s <span
64882
64873
data-x="concept-ImageBitmapRenderingContext-alpha">alpha</span> flag to true.
64883
64874
64884
64875
<li>
64885
-
64886
64876
<p>Process each of the members of <var>settings</var> as follows:</p>
64887
64877
64888
64878
<dl>
64889
-
64890
64879
<dt><dfn><code data-x="dom-ImageBitmapRenderingContextSettings-alpha">alpha</code></dfn></dt>
64891
-
64892
64880
<dd>If false, then set <var>context</var>'s <span
64893
64881
data-x="concept-ImageBitmapRenderingContext-alpha">alpha</span> flag to false.</dd>
64894
-
64895
64882
</dl>
64896
-
64897
64883
</li>
64898
64884
64899
- <li><p>Return the new <code>ImageBitmapRenderingContext</code> object.</p></li>
64900
-
64885
+ <li><p>Return <var>context</var>.</p></li>
64901
64886
</ol>
64902
64887
64903
64888
<hr>
0 commit comments