<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>197837</bug_id>
          
          <creation_ts>2019-05-13 07:12:37 -0700</creation_ts>
          <short_desc>GraphicsLayer contentsVisible property miscomputed when using backing sharing</short_desc>
          <delta_ts>2019-05-13 08:23:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Compositing</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antti Koivisto">koivisto</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1535605</commentid>
    <comment_count>0</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-05-13 07:12:37 -0700</bug_when>
    <thetext>The attached test case produces layer tree

(GraphicsLayer
  (anchor 0.00 0.00)
  (bounds 800.00 600.00)
  (deep color 1)
  (children 1
    (GraphicsLayer
      (bounds 800.00 600.00)
      (contentsOpaque 1)
      (deep color 1)
      (children 2
        (GraphicsLayer
          (position 8.00 8.00)
          (bounds 500.00 500.00)
          (contentsOpaque 1)
          (deep color 1)
        )
        (GraphicsLayer
          (position 30.00 30.00)
          (bounds 250.00 250.00)
          (drawsContent 1)
          (contentsVisible 0)
          (deep color 1)
        )
      )
    )
  )
)

The layer with (contentsVisible 0) has visible contents in backing sharing descendants.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535606</commentid>
    <comment_count>1</comment_count>
      <attachid>369729</attachid>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-05-13 07:12:52 -0700</bug_when>
    <thetext>Created attachment 369729
test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535607</commentid>
    <comment_count>2</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-05-13 07:18:13 -0700</bug_when>
    <thetext>Maybe we can simply remove contentsVisible and userInteractionEnabled GraphicsLayer properties? Their purpose seems to be entirely subsumed by the event region.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535617</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-05-13 08:15:35 -0700</bug_when>
    <thetext>Does the event region control whether an overflow scroll is interactive? If so, then it sounds like we can remove these. But we need to make sure that the pointer-events and visibility properties are correctly reflected in event regions, and that event regions correctly disable interaction on UIScrollViews. More tests required!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535621</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2019-05-13 08:23:17 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #3)
&gt; Does the event region control whether an overflow scroll is interactive?

Yep.

&gt; If
&gt; so, then it sounds like we can remove these. But we need to make sure that
&gt; the pointer-events and visibility properties are correctly reflected in
&gt; event regions, and that event regions correctly disable interaction on
&gt; UIScrollViews. More tests required!

Event regions do respect both visibility and pointer-events and has some testing for those too already.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>369729</attachid>
            <date>2019-05-13 07:12:52 -0700</date>
            <delta_ts>2019-05-13 07:12:52 -0700</delta_ts>
            <desc>test</desc>
            <filename>backing-sharing-visibility.html</filename>
            <type>text/html</type>
            <size>1113</size>
            <attacher name="Antti Koivisto">koivisto</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDxzdHlsZT4KICAgICAgICAucmVsYXRp
dmUgewogICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgICAgIHRvcDogMjBw
eDsKICAgICAgICAgICAgbGVmdDogMjBweDsKICAgICAgICAgICAgaGVpZ2h0OiAxMHB4OwogICAg
ICAgICAgICB3aWR0aDogMTBweDsKICAgICAgICAgICAgbWFyZ2luOiAxMHB4OwogICAgICAgICAg
ICB2aXNpYmlsaXR5OiBoaWRkZW47CiAgICAgICAgfQogICAgICAgIAogICAgICAgIC5zaGFyaW5n
IHsKCQkJcG9zaXRpb246IHJlbGF0aXZlOwoJCQl0b3A6IDUwcHg7CgkJCWxlZnQ6IDUwcHg7CiAg
ICAgICAgICAgIHdpZHRoOiAyMDBweDsKICAgICAgICAgICAgaGVpZ2h0OiAyMDBweDsKICAgICAg
ICAgICAgYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47CiAgICAgICAgICAgIHZpc2liaWxpdHk6IHZp
c2libGU7CiAgICAgICAgfQoKICAgICAgICAudHJpZ2dlciB7CiAgICAgICAgICAgIHRyYW5zZm9y
bTogdHJhbnNsYXRlWigwKTsKICAgICAgICAgICAgd2lkdGg6IDUwMHB4OwogICAgICAgICAgICBo
ZWlnaHQ6IDUwMHB4OwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBzaWx2ZXI7CiAgICAg
ICAgfQogICAgPC9zdHlsZT4KICAgIDxzY3JpcHQ+CiAgICAgICAgaWYgKHdpbmRvdy50ZXN0UnVu
bmVyKQogICAgICAgICAgICB0ZXN0UnVubmVyLmR1bXBBc1RleHQoKTsKCiAgICAgICAgd2luZG93
LmFkZEV2ZW50TGlzdGVuZXIoJ2xvYWQnLCAoKSA9PiB7CiAgICAgICAgICAgIGlmICh3aW5kb3cu
aW50ZXJuYWxzKQogICAgICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2xheWVy
cycpLnRleHRDb250ZW50ID0gaW50ZXJuYWxzLmxheWVyVHJlZUFzVGV4dChkb2N1bWVudCk7CiAg
ICAgICAgfSwgZmFsc2UpOwogICAgPC9zY3JpcHQ+CjwvaGVhZD4KPGJvZHk+CiAgICA8ZGl2IGNs
YXNzPSJ0cmlnZ2VyIj48L2Rpdj4KICAgIDxkaXYgY2xhc3M9InJlbGF0aXZlIj4KICAgICAgICA8
ZGl2IGNsYXNzPSJzaGFyaW5nIj4KICAgICAgICA8L2Rpdj4KICAgIDwvZGl2Pgo8cHJlIGlkPSJs
YXllcnMiPjwvcHJlPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>