<?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>222124</bug_id>
          
          <creation_ts>2021-02-18 11:42:55 -0800</creation_ts>
          <short_desc>RenderLayer::calculateLayerBounds() is wrong with clipping</short_desc>
          <delta_ts>2021-02-25 11:43:44 -0800</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>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=222092</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=222132</see_also>
          <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>
          
          
          <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>1730956</commentid>
    <comment_count>0</comment_count>
      <attachid>420859</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-02-18 11:42:55 -0800</bug_when>
    <thetext>Created attachment 420859
Test case

The UseLocalClipRectIfPossible code path in RenderLayer::calculateLayerBounds() assumes that all descendants are affected by the clip, but that&apos;d wrong; this layer might not be in the containing block ancestry of descendant layers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1730959</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-02-18 11:52:35 -0800</bug_when>
    <thetext>I think it needs to call clipRectRelativeToAncestor() with the ancestorLayer all the way down, rather than resetting ancestorLayer at each level.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1733433</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-25 11:43:44 -0800</bug_when>
    <thetext>&lt;rdar://problem/74753726&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>420859</attachid>
            <date>2021-02-18 11:42:55 -0800</date>
            <delta_ts>2021-02-18 11:42:55 -0800</delta_ts>
            <desc>Test case</desc>
            <filename>composited-bounds-clipping.html</filename>
            <type>text/html</type>
            <size>912</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbD4KPGhlYWQ+CiAgICA8c3R5bGU+CiAgICAgICAgLnBhcmVu
dCB7CiAgICAgICAgICAgIGhlaWdodDogMTAwcHg7CiAgICAgICAgICAgIHdpZHRoOiA1MDBweDsK
ICAgICAgICAgICAgbWFyZ2luOiA1MHB4OwogICAgICAgICAgICBiYWNrZ3JvdW5kOiBzaWx2ZXI7
CiAgICAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgICAgIG9wYWNpdHk6IDAuOTU7
CiAgICAgICAgfSAgICAgICAgCgogICAgICAgIC5jaGlsZCB7CiAgICAgICAgICAgIHBvc2l0aW9u
OiBhYnNvbHV0ZTsKICAgICAgICAgICAgdG9wOiA1MHB4OwogICAgICAgICAgICBoZWlnaHQ6IDEw
MHB4OwogICAgICAgICAgICB3aWR0aDogNDAwcHg7CiAgICAgICAgICAgIGJhY2tncm91bmQ6ICNm
ZmVhNjE7CiAgICAgICAgICAgIGJveC1zaGFkb3c6IDAgMCA1MHB4IGJsYWNrOwogICAgICAgIH0K
ICAgICAgICAKICAgICAgICAudW5kZXJsYXAgewogICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1
dGU7CiAgICAgICAgICAgIHRvcDogNDVweDsKICAgICAgICAgICAgbGVmdDogNDVweDsKICAgICAg
ICAgICAgaGVpZ2h0OiAyMHB4OwogICAgICAgICAgICB3aWR0aDogMjBweDsKICAgICAgICAgICAg
Ym9yZGVyOiAxcHggc29saWQgYmx1ZTsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgLmNvbXBv
c2l0ZWQgewogICAgICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgICAgICAgfQog
ICAgICAgIAogICAgPC9zdHlsZT4KPC9oZWFkPgo8Ym9keT4KICAgIDxkaXYgY2xhc3M9ImNvbXBv
c2l0ZWQgdW5kZXJsYXAiPjwvZGl2PgogICAgPGRpdiBjbGFzcz0icGFyZW50Ij4KICAgICAgPGRp
diBjbGFzcz0ic2hhcmVkIGNoaWxkIj48L2Rpdj4KICAgIDwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>