HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
7037[Gecko] [Internet Explorer] [Opera] [Webkit] Make addHitRegion() consistent with context.fill() in using the context's transformation matrix, not a separate transformation.2012-03-28 04:35
@@ -40717,22 +40717,22 @@ interface <dfn>TextMetrics</dfn> {
   readonly attribute double <span title="dom-textmetrics-actualBoundingBoxDescent">actualBoundingBoxDescent</span>;
   readonly attribute double <span title="dom-textmetrics-emHeightAscent">emHeightAscent</span>;
   readonly attribute double <span title="dom-textmetrics-emHeightDescent">emHeightDescent</span>;
   readonly attribute double <span title="dom-textmetrics-hangingBaseline">hangingBaseline</span>;
   readonly attribute double <span title="dom-textmetrics-alphabeticBaseline">alphabeticBaseline</span>;
   readonly attribute double <span title="dom-textmetrics-ideographicBaseline">ideographicBaseline</span>;
 };
 
 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:
   <span>Element</span>? <span title="dom-HitRegionOptions-control">control</span> = null;
   // for unbacked regions:
   <span>DOMString</span>? <span title="dom-HitRegionOptions-label">label</span> = null;
   <span>DOMString</span>? <span title="dom-HitRegionOptions-role">role</span> = null;
 };
 
 interface <dfn>ImageData</dfn> {
@@ -44720,27 +44720,27 @@ v6DVT (also check for '- -' bits in the part above) -->
     object with the following members:</p>
 
     <dl>
 
      <dt><code title="dom-HitRegionOptions-path">path</code> (default null)
 
      <dd>A <code>Path</code> object that describes the pixels that
      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
      <code>MouseEvent</code> events on the <code>canvas</code> (<code
      title="dom-MouseEvent-region">event.region</code>) and as a way
      to reference this region in later calls to <code
      title="dom-context-2d-addHitRegion">addHitRegion()</code>.</dd>
 
      <dt><code title="dom-HitRegionOptions-parentID">parentID</code> (default null)
 
@@ -44978,32 +44978,38 @@ v6DVT (also check for '- -' bits in the part above) -->
 
    <li><p>Let <var title="">arguments</var> be the dictionary object
    provided as the method's argument.</p></li>
 
    <li><p>If the <var title="">arguments</var> object's <code
    title="dom-HitRegionOptions-path">path</code> member is not null,
    let <var title="">source path</var> be the <code
    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>
    member is not, then throw a <code>NotSupportedError</code>
    exception and abort these steps.</p></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.</p></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.</p></li>
 
    <li><p>If the <var title="">arguments</var> object's <code
    title="dom-HitRegionOptions-id">id</code> member is not null, then
    let <var title="">previous region for this ID</var> be <span>the
    region identified by the ID</span> given by the <code
    title="dom-HitRegionOptions-id">id</code> member's value in this
@@ -45030,26 +45036,26 @@ v6DVT (also check for '- -' bits in the part above) -->
    title="dom-HitRegionOptions-label">label</code> member is the
    empty string, let it be null instead.</p></li>
 
    <li>
 
     <p>If any of the following conditions are met, throw a
     <code>NotSupportedError</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>
      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
      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
      non-null.</li>
 

|