<?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>250481</bug_id>
          
          <creation_ts>2023-01-11 15:15:22 -0800</creation_ts>
          <short_desc>Improve comparison of intervals in SVGSMILElement::resolveFirstInterval</short_desc>
          <delta_ts>2025-08-25 07:56:25 -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="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>karlcow</cc>
    
    <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>1924907</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-11 15:15:22 -0800</bug_when>
    <thetext>Hi Team,

While going through Blink&apos;s commit, came across another potential fix:

Commit - https://src.chromium.org/viewvc/blink?revision=175122&amp;view=revision

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/svg/animation/SVGSMILElement.cpp#863 etc.

Just wanted to raise to see if we can fix this.

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924979</commentid>
    <comment_count>1</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2023-01-11 20:59:10 -0800</bug_when>
    <thetext>The prose of the Blink commit.

============
Improve comparison of intervals in SVGSMILElement::resolveFirstInterval

For open-ended intervals such as [3) - i.e. begin=3s and end/duration/etc
unspecified - every call to resolveFirstInterval() would think that a new
interval had been created, and notify/require a reschedule of the
animations.
Add a new type SMILInterval and a suitable operator for that, and then
use it to compare the raw values (i.e. if both endpoints are exacly the same.)

BUG=377329
===========
https://bugs.chromium.org/p/chromium/issues/detail?id=377329


There is a testcase in there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925029</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-12 04:21:26 -0800</bug_when>
    <thetext>(In reply to Karl Dubost from comment #1)
&gt; The prose of the Blink commit.
&gt; 
&gt; ============
&gt; Improve comparison of intervals in SVGSMILElement::resolveFirstInterval
&gt; 
&gt; For open-ended intervals such as [3) - i.e. begin=3s and end/duration/etc
&gt; unspecified - every call to resolveFirstInterval() would think that a new
&gt; interval had been created, and notify/require a reschedule of the
&gt; animations.
&gt; Add a new type SMILInterval and a suitable operator for that, and then
&gt; use it to compare the raw values (i.e. if both endpoints are exacly the
&gt; same.)
&gt; 
&gt; BUG=377329
&gt; ===========
&gt; https://bugs.chromium.org/p/chromium/issues/detail?id=377329
&gt; 
&gt; 
&gt; There is a testcase in there.

The test need:

Add a printf in SVGImageChromeClient::invalidateContentsAndRootView</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926430</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-18 15:16:14 -0800</bug_when>
    <thetext>&lt;rdar://problem/104399900&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2051960</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-08-11 01:15:18 -0700</bug_when>
    <thetext>SVN repo is gone - so alternative link - https://github.com/chromium/chromium/commit/5b93bdd34c17dae682ce14c45125abc603310b16</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138486</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-08-23 12:32:21 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/49818</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2138608</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-08-25 07:56:23 -0700</bug_when>
    <thetext>Committed 299110@main (661903c79498): &lt;https://commits.webkit.org/299110@main&gt;

Reviewed commits have been landed. Closing PR #49818 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>