[html5] r7037 - [giow] (0) Make addHitRegion() consistent with context.fill() in using the conte [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Mar 27 21:35:56 PDT 2012
Author: ianh
Date: 2012-03-27 21:35:55 -0700 (Tue, 27 Mar 2012)
New Revision: 7037
Modified:
complete.html
index
source
Log:
[giow] (0) Make addHitRegion() consistent with context.fill() in using the context's transformation matrix, not a separate transformation.
Affected topics: Canvas
Modified: complete.html
===================================================================
--- complete.html 2012-03-27 23:25:07 UTC (rev 7036)
+++ complete.html 2012-03-28 04:35:55 UTC (rev 7037)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 27 March 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 28 March 2012</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>
@@ -35042,8 +35042,8 @@
dictionary <dfn id=hitregionoptions>HitRegionOptions</dfn> {
<a href=#path>Path</a>? <span title=dom-HitRegionOptions-path>path</span> = null;
- <a href=#svgmatrix>SVGMatrix</a>? <span title=dom-HitRegionOptions-transform>transform</span> = null;
- <span>DOMString</span> <span title=dom-HitRegionOptions-id>id</span> = '';
+<!-- <span>SVGMatrix</span>? <span title="dom-HitRegionOptions-transform">transform</span> = null;
+--> <span>DOMString</span> <span title=dom-HitRegionOptions-id>id</span> = '';
<span>DOMString</span>? <span title=dom-HitRegionOptions-parentID>parentID</span> = null;
<span>DOMString</span> <span title=dom-HitRegionOptions-cursor>cursor</span> = 'inherit';
// for control-backed regions:
@@ -38398,12 +38398,13 @@
form part of the region. If this member is not provided or is set
to null, the <a href=#current-default-path>current default path</a> is used
instead.</dd>
+<!--
+ <dt><code title="dom-HitRegionOptions-transform">transform</code> (default null)
- <dt><code title=dom-HitRegionOptions-transform>transform</code> (default null)
-
- <dd>An <code><a href=#svgmatrix>SVGMatrix</a></code> object that describes a
- transformation to apply to the path described by the <code title=dom-HitRegionOptions-path>path</code> member.</dd>
-
+ <dd>An <code>SVGMatrix</code> object that describes a
+ transformation to apply to the path described by the <code
+ title="dom-HitRegionOptions-path">path</code> member.</dd>
+-->
<dt><code title=dom-HitRegionOptions-id>id</code> (default empty string)
<dd>The ID to use for this region. This is used in
@@ -38591,16 +38592,23 @@
let <var title="">source path</var> be the <code title=dom-HitRegionOptions-path>path</code> member's value.
Otherwise, let it be the <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code>
object's <a href=#current-default-path>current default path</a>.</li>
+<!--
+ <li><p>If the <var title="">arguments</var> object's <code
+ title="dom-HitRegionOptions-path">path</code> member is null, but
+ the <code title="dom-HitRegionOptions-transform">transform</code>
+ member is not, then throw a <code>NotSupportedError</code>
+ exception and abort these steps.</p></li>
- <li><p>If the <var title="">arguments</var> object's <code title=dom-HitRegionOptions-path>path</code> member is null, but
- the <code title=dom-HitRegionOptions-transform>transform</code>
- member is not, then throw a <code><a href=#notsupportederror>NotSupportedError</a></code>
- exception and abort these steps.</li>
+ <li><p>Transform all the coordinates and lines in <var
+ title="">source path</var> by the transform matrix given by the
+ <var title="">arguments</var> object's <code
+ title="dom-HitRegionOptions-transform">transform</code> member, if
+ it is not null.</p></li>
+-->
+ <li><p>Transform all the coordinates and lines in <var title="">source path</var> by the current transform matrix, if the
+ <var title="">arguments</var> object's <code title=dom-HitRegionOptions-path>path</code> member is not
+ null.</li>
- <li><p>Transform all the coordinates and lines in <var title="">source path</var> by the transform matrix given by the
- <var title="">arguments</var> object's <code title=dom-HitRegionOptions-transform>transform</code> member, if
- it is not null.</li>
-
<li><p>If the <var title="">arguments</var> object's <code title=dom-HitRegionOptions-id>id</code> member is the
empty string, let it be null instead.</li>
@@ -38630,11 +38638,12 @@
<code><a href=#notsupportederror>NotSupportedError</a></code> exception and abort these
steps.</p>
- <ul class=brief><li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-path>path</code> member is null, but
- its <code title=dom-HitRegionOptions-transform>transform</code>
+ <ul class=brief><!--
+ <li>The <var title="">arguments</var> object's <code
+ title="dom-HitRegionOptions-path">path</code> member is null, but
+ its <code title="dom-HitRegionOptions-transform">transform</code>
member is not.</li>
-
- <li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-control>control</code> and <code title=dom-HitRegionOptions-label>label</code> members are both
+--><li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-control>control</code> and <code title=dom-HitRegionOptions-label>label</code> members are both
non-null.</li>
<li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-control>control</code> and <code title=dom-HitRegionOptions-role>role</code> members are both
Modified: index
===================================================================
--- index 2012-03-27 23:25:07 UTC (rev 7036)
+++ index 2012-03-28 04:35:55 UTC (rev 7037)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 27 March 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 28 March 2012</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>
@@ -35042,8 +35042,8 @@
dictionary <dfn id=hitregionoptions>HitRegionOptions</dfn> {
<a href=#path>Path</a>? <span title=dom-HitRegionOptions-path>path</span> = null;
- <a href=#svgmatrix>SVGMatrix</a>? <span title=dom-HitRegionOptions-transform>transform</span> = null;
- <span>DOMString</span> <span title=dom-HitRegionOptions-id>id</span> = '';
+<!-- <span>SVGMatrix</span>? <span title="dom-HitRegionOptions-transform">transform</span> = null;
+--> <span>DOMString</span> <span title=dom-HitRegionOptions-id>id</span> = '';
<span>DOMString</span>? <span title=dom-HitRegionOptions-parentID>parentID</span> = null;
<span>DOMString</span> <span title=dom-HitRegionOptions-cursor>cursor</span> = 'inherit';
// for control-backed regions:
@@ -38398,12 +38398,13 @@
form part of the region. If this member is not provided or is set
to null, the <a href=#current-default-path>current default path</a> is used
instead.</dd>
+<!--
+ <dt><code title="dom-HitRegionOptions-transform">transform</code> (default null)
- <dt><code title=dom-HitRegionOptions-transform>transform</code> (default null)
-
- <dd>An <code><a href=#svgmatrix>SVGMatrix</a></code> object that describes a
- transformation to apply to the path described by the <code title=dom-HitRegionOptions-path>path</code> member.</dd>
-
+ <dd>An <code>SVGMatrix</code> object that describes a
+ transformation to apply to the path described by the <code
+ title="dom-HitRegionOptions-path">path</code> member.</dd>
+-->
<dt><code title=dom-HitRegionOptions-id>id</code> (default empty string)
<dd>The ID to use for this region. This is used in
@@ -38591,16 +38592,23 @@
let <var title="">source path</var> be the <code title=dom-HitRegionOptions-path>path</code> member's value.
Otherwise, let it be the <code><a href=#canvasrenderingcontext2d>CanvasRenderingContext2D</a></code>
object's <a href=#current-default-path>current default path</a>.</li>
+<!--
+ <li><p>If the <var title="">arguments</var> object's <code
+ title="dom-HitRegionOptions-path">path</code> member is null, but
+ the <code title="dom-HitRegionOptions-transform">transform</code>
+ member is not, then throw a <code>NotSupportedError</code>
+ exception and abort these steps.</p></li>
- <li><p>If the <var title="">arguments</var> object's <code title=dom-HitRegionOptions-path>path</code> member is null, but
- the <code title=dom-HitRegionOptions-transform>transform</code>
- member is not, then throw a <code><a href=#notsupportederror>NotSupportedError</a></code>
- exception and abort these steps.</li>
+ <li><p>Transform all the coordinates and lines in <var
+ title="">source path</var> by the transform matrix given by the
+ <var title="">arguments</var> object's <code
+ title="dom-HitRegionOptions-transform">transform</code> member, if
+ it is not null.</p></li>
+-->
+ <li><p>Transform all the coordinates and lines in <var title="">source path</var> by the current transform matrix, if the
+ <var title="">arguments</var> object's <code title=dom-HitRegionOptions-path>path</code> member is not
+ null.</li>
- <li><p>Transform all the coordinates and lines in <var title="">source path</var> by the transform matrix given by the
- <var title="">arguments</var> object's <code title=dom-HitRegionOptions-transform>transform</code> member, if
- it is not null.</li>
-
<li><p>If the <var title="">arguments</var> object's <code title=dom-HitRegionOptions-id>id</code> member is the
empty string, let it be null instead.</li>
@@ -38630,11 +38638,12 @@
<code><a href=#notsupportederror>NotSupportedError</a></code> exception and abort these
steps.</p>
- <ul class=brief><li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-path>path</code> member is null, but
- its <code title=dom-HitRegionOptions-transform>transform</code>
+ <ul class=brief><!--
+ <li>The <var title="">arguments</var> object's <code
+ title="dom-HitRegionOptions-path">path</code> member is null, but
+ its <code title="dom-HitRegionOptions-transform">transform</code>
member is not.</li>
-
- <li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-control>control</code> and <code title=dom-HitRegionOptions-label>label</code> members are both
+--><li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-control>control</code> and <code title=dom-HitRegionOptions-label>label</code> members are both
non-null.</li>
<li>The <var title="">arguments</var> object's <code title=dom-HitRegionOptions-control>control</code> and <code title=dom-HitRegionOptions-role>role</code> members are both
Modified: source
===================================================================
--- source 2012-03-27 23:25:07 UTC (rev 7036)
+++ source 2012-03-28 04:35:55 UTC (rev 7037)
@@ -40724,8 +40724,8 @@
dictionary <dfn>HitRegionOptions</dfn> {
<span>Path</span>? <span title="dom-HitRegionOptions-path">path</span> = null;
- <span>SVGMatrix</span>? <span title="dom-HitRegionOptions-transform">transform</span> = null;
- <span>DOMString</span> <span title="dom-HitRegionOptions-id">id</span> = '';
+<!-- <span>SVGMatrix</span>? <span title="dom-HitRegionOptions-transform">transform</span> = null;
+--> <span>DOMString</span> <span title="dom-HitRegionOptions-id">id</span> = '';
<span>DOMString</span>? <span title="dom-HitRegionOptions-parentID">parentID</span> = null;
<span>DOMString</span> <span title="dom-HitRegionOptions-cursor">cursor</span> = 'inherit';
// for control-backed regions:
@@ -44727,13 +44727,13 @@
form part of the region. If this member is not provided or is set
to null, the <span>current default path</span> is used
instead.</dd>
-
+<!--
<dt><code title="dom-HitRegionOptions-transform">transform</code> (default null)
<dd>An <code>SVGMatrix</code> object that describes a
transformation to apply to the path described by the <code
title="dom-HitRegionOptions-path">path</code> member.</dd>
-
+-->
<dt><code title="dom-HitRegionOptions-id">id</code> (default empty string)
<dd>The ID to use for this region. This is used in
@@ -44985,7 +44985,7 @@
title="dom-HitRegionOptions-path">path</code> member's value.
Otherwise, let it be the <code>CanvasRenderingContext2D</code>
object's <span>current default path</span>.</p></li>
-
+<!--
<li><p>If the <var title="">arguments</var> object's <code
title="dom-HitRegionOptions-path">path</code> member is null, but
the <code title="dom-HitRegionOptions-transform">transform</code>
@@ -44997,6 +44997,12 @@
<var title="">arguments</var> object's <code
title="dom-HitRegionOptions-transform">transform</code> member, if
it is not null.</p></li>
+-->
+ <li><p>Transform all the coordinates and lines in <var
+ title="">source path</var> by the current transform matrix, if the
+ <var title="">arguments</var> object's <code
+ title="dom-HitRegionOptions-path">path</code> member is not
+ null.</p></li>
<li><p>If the <var title="">arguments</var> object's <code
title="dom-HitRegionOptions-id">id</code> member is the
@@ -45037,12 +45043,12 @@
steps.</p>
<ul class="brief">
-
+<!--
<li>The <var title="">arguments</var> object's <code
title="dom-HitRegionOptions-path">path</code> member is null, but
its <code title="dom-HitRegionOptions-transform">transform</code>
member is not.</li>
-
+-->
<li>The <var title="">arguments</var> object's <code
title="dom-HitRegionOptions-control">control</code> and <code
title="dom-HitRegionOptions-label">label</code> members are both
More information about the Commit-Watchers
mailing list