diff --git a/complete.html b/complete.html index 77c74fd90de..0d793463bce 100644 --- a/complete.html +++ b/complete.html @@ -35845,6 +35845,7 @@
4.8.11.1 The 2D context
// hit regions void addHitRegion(HitRegionOptions options); + void removeHitRegion(HitRegionOptions options); // pixel manipulation ImageData createImageData(double sw, double sh); @@ -39529,6 +39530,21 @@
4.8.11.1.14 Hit regions
+
context . removeHitRegion(options)
+ +
+ +

Removes a hit region (and all its ancestors) from the canvas + bitmap. The argument is the ID of a region added using addHitRegion().

+ +

The pixels that were covered by this region and its descendants + are effectively cleared by this operation, leaving the regions + non-interactive. In particular, regions that occupied the same + pixels before the removed regions were added, overlapping them, do + not resume their previous role.

+ +
+

A hit region A is an @@ -39564,7 +39580,7 @@

4.8.11.1.14 Hit regions
steps.
  • Let list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

  • If there is a hit region in list whose list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

  • If there is a hit region in list whose list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

  • Remove all pixels in pixels from the set of pixels of each hit region in list.

  • +
  • Garbage-collect the regions of ancestor.

  • + +

    To garbage-collect the regions of a + canvas element ancestor, the user + agent must run the following steps:

    + +
    1. Let list be the hit region + list associated with ancestor's + bitmap.

    2. +
    3. Loop: Let victim be the first hit region in list to have an empty set of @@ -39898,6 +39924,24 @@

      4.8.11.1.14 Hit regions
    4. Add region to the canvas element's hit region list.

    5. +

    When the removeHitRegion() + method is invoked, the user agent must run the following steps:

    + +
    1. Let region be the region + identified by the ID given by the method's argument in this + canvas element, if any. If no such region currently + exists, abort these steps.

    2. + +
    3. Remove region, and all hit regions for which it is an ancestor + region, from the canvas element's hit + region list; then, if it had a parent region, decrement that hit region's + child count by one.

    4. + +
    5. Garbage-collect the regions of ancestor.

    6. +

    The MouseEvent interface is extended to support hit diff --git a/index b/index index 77c74fd90de..0d793463bce 100644 --- a/index +++ b/index @@ -35845,6 +35845,7 @@ dictionary TrackEventInit : Even // hit regions void addHitRegion(HitRegionOptions options); + void removeHitRegion(HitRegionOptions options); // pixel manipulation ImageData createImageData(double sw, double sh); @@ -39529,6 +39530,21 @@ v6DVT (also check for '- -' bits in the part above) -->

    The +

    context . removeHitRegion(options)
    + +
    + +

    Removes a hit region (and all its ancestors) from the canvas + bitmap. The argument is the ID of a region added using addHitRegion().

    + +

    The pixels that were covered by this region and its descendants + are effectively cleared by this operation, leaving the regions + non-interactive. In particular, regions that occupied the same + pixels before the removed regions were added, overlapping them, do + not resume their previous role.

    + +
    +

    A hit region A is an @@ -39564,7 +39580,7 @@ v6DVT (also check for '- -' bits in the part above) -->

    The

  • Let list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

  • If there is a hit region in list whose list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

  • If there is a hit region in list whose list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

  • Remove all pixels in pixels from the set of pixels of each hit region in list.

  • +
  • Garbage-collect the regions of ancestor.

  • + +

    To garbage-collect the regions of a + canvas element ancestor, the user + agent must run the following steps:

    + +
    1. Let list be the hit region + list associated with ancestor's + bitmap.

    2. +
    3. Loop: Let victim be the first hit region in list to have an empty set of @@ -39898,6 +39924,24 @@ v6DVT (also check for '- -' bits in the part above) -->

      The

      Add region to the canvas element's hit region list.

    4. +

    When the removeHitRegion() + method is invoked, the user agent must run the following steps:

    + +
    1. Let region be the region + identified by the ID given by the method's argument in this + canvas element, if any. If no such region currently + exists, abort these steps.

    2. + +
    3. Remove region, and all hit regions for which it is an ancestor + region, from the canvas element's hit + region list; then, if it had a parent region, decrement that hit region's + child count by one.

    4. + +
    5. Garbage-collect the regions of ancestor.

    6. +

    The MouseEvent interface is extended to support hit diff --git a/source b/source index 409cae1fa95..d87c190d756 100644 --- a/source +++ b/source @@ -41767,6 +41767,7 @@ dictionary TrackEventInit : EventInit { // hit regions void addHitRegion(HitRegionOptions options); + void removeHitRegion(HitRegionOptions options); // pixel manipulation ImageData createImageData(double sw, double sh); @@ -46126,6 +46127,22 @@ v6DVT (also check for '- -' bits in the part above) --> +

    context . removeHitRegion(options)
    + +
    + +

    Removes a hit region (and all its ancestors) from the canvas + bitmap. The argument is the ID of a region added using addHitRegion().

    + +

    The pixels that were covered by this region and its descendants + are effectively cleared by this operation, leaving the regions + non-interactive. In particular, regions that occupied the same + pixels before the removed regions were added, overlapping them, do + not resume their previous role.

    + +
    +
    @@ -46176,7 +46193,7 @@ v6DVT (also check for '- -' bits in the part above) --> steps.

  • Let list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

  • If there is a hit region in

    1. Let list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

    2. If there is a hit region in

      1. Let list be the hit region - list associatd with ancestor's + list associated with ancestor's bitmap.

      2. Remove all pixels in pixels from the set of pixels of each hit region in list.

      3. +
      4. Garbage-collect the regions of ancestor.

      5. + +
      + +

      To garbage-collect the regions of a + canvas element ancestor, the user + agent must run the following steps:

      + +
        + +
      1. Let list be the hit region + list associated with ancestor's + bitmap.

      2. +
      3. Loop: Let victim be the first hit region in list to have an empty set of @@ -46605,6 +46637,30 @@ v6DVT (also check for '- -' bits in the part above) -->

      +

      When the removeHitRegion() + method is invoked, the user agent must run the following steps:

      + +
        + +
      1. Let region be the region + identified by the ID given by the method's argument in this + canvas element, if any. If no such region currently + exists, abort these steps.

      2. + +
      3. Remove region, and all hit regions for which it is an ancestor + region, from the canvas element's hit + region list; then, if it had a parent region, decrement that hit region's + child count by one.

      4. + +
      5. Garbage-collect the regions of ancestor.

      6. + +
      +