Skip to content

Commit

Permalink
[e] (0) Move the addHitRegion() call in this sample code, since I pas…
Browse files Browse the repository at this point in the history
…ted it in the wrong place!

Affected topics: Canvas

git-svn-id: http://svn.whatwg.org/webapps@8419 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 25, 2014
1 parent d77cc71 commit c3549c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions complete.html
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 24 January 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 25 January 2014</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -57719,6 +57719,7 @@ <h6 id=drawing-paths-to-the-canvas><span class=secno>4.12.4.2.13 </span>Drawing
context.strokeStyle = 'black';
context.rect(x-5, y-5, 10, 10);
context.stroke();
context.addHitRegion({ control: element });
</strong> if (element.checked) {
<strong> context.fillStyle = 'black';
context.fill();
Expand All @@ -57727,7 +57728,6 @@ <h6 id=drawing-paths-to-the-canvas><span class=secno>4.12.4.2.13 </span>Drawing
}
<strong> context.beginPath();
context.rect(x-7, y-7, 12 + metrics.width+2, 14);
context.addHitRegion({ control: element });
if (paint &amp;&amp; context.drawCustomFocusRing(element)) {
context.strokeStyle = 'silver';
context.stroke();
Expand Down
4 changes: 2 additions & 2 deletions index
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 24 January 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 25 January 2014</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -57719,6 +57719,7 @@ v6DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
context.strokeStyle = 'black';
context.rect(x-5, y-5, 10, 10);
context.stroke();
context.addHitRegion({ control: element });
</strong> if (element.checked) {
<strong> context.fillStyle = 'black';
context.fill();
Expand All @@ -57727,7 +57728,6 @@ v6DVT (also check for '- -' bits in the part above) --><p>The <dfn id=dom-contex
}
<strong> context.beginPath();
context.rect(x-7, y-7, 12 + metrics.width+2, 14);
context.addHitRegion({ control: element });
if (paint &amp;&amp; context.drawCustomFocusRing(element)) {
context.strokeStyle = 'silver';
context.stroke();
Expand Down
2 changes: 1 addition & 1 deletion source
Expand Up @@ -64178,6 +64178,7 @@ v6DVT (also check for '- -' bits in the part above) -->
context.strokeStyle = 'black';
context.rect(x-5, y-5, 10, 10);
context.stroke();
context.addHitRegion({ control: element });
</strong> if (element.checked) {
<strong> context.fillStyle = 'black';
context.fill();
Expand All @@ -64186,7 +64187,6 @@ v6DVT (also check for '- -' bits in the part above) -->
}
<strong> context.beginPath();
context.rect(x-7, y-7, 12 + metrics.width+2, 14);
context.addHitRegion({ control: element });
if (paint && context.drawCustomFocusRing(element)) {
context.strokeStyle = 'silver';
context.stroke();
Expand Down

0 comments on commit c3549c6

Please sign in to comment.