<?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>280986</bug_id>
          
          <creation_ts>2024-10-07 09:57:13 -0700</creation_ts>
          <short_desc>REGRESSION(269351@main): RELEASE_ASSERT fires when rotating an SVG element around a zero vector</short_desc>
          <delta_ts>2024-10-10 13:18:32 -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>SVG</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2065888</commentid>
    <comment_count>0</comment_count>
      <attachid>472842</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2024-10-07 09:57:13 -0700</bug_when>
    <thetext>Created attachment 472842
test case

Open the attached test case.

Result: A RELEASE_ASSERT will fire.

This happens because 269351@main changed LegacyRenderSVGRoot::strokeBoundingBox() to return the value of Markable&lt;FloatRect&gt;. The test case causes the localToParentTransform to be all NaN AffineTransform which causes the strokeBoundingBox to be all also a NaN FloatRect. The problem Markable&lt;FloatRect&gt;::isEmptyValue() returns true if FloatRect::isNaN() is true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2065889</commentid>
    <comment_count>1</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2024-10-07 09:57:40 -0700</bug_when>
    <thetext>rdar://135587778</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2065895</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2024-10-07 10:12:13 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/34782</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2065944</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-07 13:19:57 -0700</bug_when>
    <thetext>Committed 284781@main (fe385386b01e): &lt;https://commits.webkit.org/284781@main&gt;

Reviewed commits have been landed. Closing PR #34782 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2066977</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-10-10 13:18:32 -0700</bug_when>
    <thetext>Committed 283286.239@safari-7620-branch (500c03fe1bde): &lt;https://commits.webkit.org/283286.239@safari-7620-branch&gt;

Reviewed commits have been landed. Closing PR #2000 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>472842</attachid>
            <date>2024-10-07 09:57:13 -0700</date>
            <delta_ts>2024-10-07 09:57:13 -0700</delta_ts>
            <desc>test case</desc>
            <filename>svg-css-rotate-zero-vector.html</filename>
            <type>text/html</type>
            <size>357</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN0eWxlPgogICAgaW1hZ2UgeyAKICAgICAgICB0cmFuc2l0aW9uOiAxOHM7CiAgICB9Cjwvc3R5
bGU+Cjxib2R5PgogICAgPHN2ZyBpZD0ic3ZnIj4KICAgICAgICA8aW1hZ2UgaWQ9ImltYWdlIi8+
CiAgICA8L3N2Zz4KICAgIDxzY3JpcHQ+CiAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIo
ImxvYWQiLCAoZXZlbnQpID0+IHsKICAgICAgICAgICAgbGV0IHN0eWxlID0gaW1hZ2Uuc3R5bGU7
CiAgICAgICAgICAgIHN0eWxlLnNldFByb3BlcnR5KCJyb3RhdGUiLCAiMCAwIDAgNDVkZWciKTsK
ICAgICAgICAgICAgc3ZnLnNjcm9sbEludG9WaWV3KHRydWUpOwogICAgICAgIH0pOwogICAgPC9z
Y3JpcHQ+CjwvYm9keT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>