<?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>197783</bug_id>
          
          <creation_ts>2019-05-10 10:14:57 -0700</creation_ts>
          <short_desc>Backing sharing should not happen for stacking-order descendants of already-sharing layers</short_desc>
          <delta_ts>2019-05-11 10:21:22 -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>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>197692</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>197561</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1535052</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-05-10 10:14:57 -0700</bug_when>
    <thetext>We should never do this:

S--------C-c- -- ------ ------ 0x3a6878560 (0,0) width=600 height=588 (layerID 241) {sc 28} RenderView
S----------c- -- ------ ------   + 0x3a68786b8 (0,0) width=600 height=322  &lt;html&gt;
-NO------CP-- -- ------ ------     n 0x3a6878810 (18,10) width=302 height=302 (layerID 246) {sc 29}  &lt;div&gt; class=&apos;scrollable&apos;
S--A------p-s -- ------ ------     + 0x3a6878968 (31,31) width=200 height=200  &lt;div&gt; class=&apos;outer sharing&apos;
----------p-s -- ------ ------       + 0x3a6878ac0 (30,30) width=200 height=200  &lt;div&gt; class=&apos;sharing&apos;

0x3a6878968 is already sharing, so 0x3a6878ac0 should just paint into it, rather than also sharing.

This is causing assertions when trying to get painting with transforms working. We need to behave more like 0x3a6878968 was compositing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535053</commentid>
    <comment_count>1</comment_count>
      <attachid>369560</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-05-10 10:15:16 -0700</bug_when>
    <thetext>Created attachment 369560
Testcase (shows incorrect opacity rendering)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535276</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-05-10 17:41:56 -0700</bug_when>
    <thetext>&lt;rdar://problem/50684464&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535280</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-05-10 17:51:18 -0700</bug_when>
    <thetext>This bug leads to incorrect rendering of sharing layers with opacity, and assertions. It&apos;s required before bug 197692 can be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1535356</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-05-11 10:21:22 -0700</bug_when>
    <thetext>Bug 197692 fixed this

*** This bug has been marked as a duplicate of bug 197692 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>369560</attachid>
            <date>2019-05-10 10:15:16 -0700</date>
            <delta_ts>2019-05-10 10:15:16 -0700</delta_ts>
            <desc>Testcase (shows incorrect opacity rendering)</desc>
            <filename>no-sharing-of-paint-nested-layers.html</filename>
            <type>text/html</type>
            <size>936</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+IDwhLS0gd2Via2l0LXRlc3QtcnVubmVyIFsgaW50ZXJuYWw6QXN5bmNP
dmVyZmxvd1Njcm9sbGluZ0VuYWJsZWQ9dHJ1ZSBdIC0tPgo8aHRtbD4KPGhlYWQ+CiAgICA8dGl0
bGU+VGVzdHMgcGFpbnRpbmcgb2YgYSB0cmFuc2Zvcm1lZCBsYXllciBpbnRvIHNoYXJlZCBiYWNr
aW5nPC90aXRsZT4KICAgIDxzdHlsZT4KICAgICAgICAuc2Nyb2xsYWJsZSB7CiAgICAgICAgICAg
IG92ZXJmbG93LXk6IHNjcm9sbDsKICAgICAgICAgICAgaGVpZ2h0OiAzMDBweDsKICAgICAgICAg
ICAgd2lkdGg6IDMwMHB4OwogICAgICAgICAgICBtYXJnaW46IDEwcHg7CiAgICAgICAgICAgIGJv
cmRlcjogMXB4IHNvbGlkIGJsYWNrOwogICAgICAgIH0KCiAgICAgICAgLnNoYXJpbmcgewogICAg
ICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgICAgIHRvcDogMzBweDsKICAgICAg
ICAgICAgbGVmdDogMzBweDsKICAgICAgICAgICAgd2lkdGg6IDIwMHB4OwogICAgICAgICAgICBo
ZWlnaHQ6IDIwMHB4OwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiBncmVlbjsKICAgICAg
ICB9CiAgICAKICAgICAgICAuc3BhY2VyIHsKICAgICAgICAgICAgaGVpZ2h0OiA1MDBweDsKICAg
ICAgICB9CiAgICAgICAgCiAgICAgICAgLm91dGVyIHsKICAgICAgICAgICAgb3BhY2l0eTogMC41
OwogICAgICAgIH0KICAgIDwvc3R5bGU+CjwvaGVhZD4KPGJvZHk+CiAgICA8ZGl2IGNsYXNzPSJz
Y3JvbGxhYmxlIj4KICAgICAgICA8ZGl2IGNsYXNzPSJvdXRlciBzaGFyaW5nIj4KICAgICAgICAg
ICAgPGRpdiBjbGFzcz0ic2hhcmluZyI+CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgPC9k
aXY+CiAgICAgICAgPC9kaXY+CiAgICAgICAgPGRpdiBjbGFzcz0ic3BhY2VyIj48L2Rpdj4KICAg
IDwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>