<?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>223173</bug_id>
          
          <creation_ts>2021-03-15 00:42:53 -0700</creation_ts>
          <short_desc>Use references instead of pointers as animation wrapper function arguments in CSSPropertyAnimation.cpp</short_desc>
          <delta_ts>2021-04-12 13:12:23 -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>Animations</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>224433</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=223148</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="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1739319</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-03-15 00:42:53 -0700</bug_when>
    <thetext>This is a followup to bug 223148 to address some additional review feedback that Darin Adler provided.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1739340</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-03-15 03:09:41 -0700</bug_when>
    <thetext>Actually, looking at the code again:

    double aspectRatioDst = WebCore::blend(log(a-&gt;logicalAspectRatio()), log(b-&gt;logicalAspectRatio()), progress);
    dst-&gt;setAspectRatio(exp(aspectRatioDst), 1);
    dst-&gt;setAspectRatioType(progress &lt; 0.5 ? a-&gt;aspectRatioType() : b-&gt;aspectRatioType());

Since in the discrete case the progress is either 0 or 1, I think the blend function could be just those three lines. While it&apos;s a bit extra work to actually blend the values when we know it&apos;ll be one or the other, it simplifies the logic.

That assumes that canInterpolate() will correctly identify all cases where the animation should be discrete, which is its contract.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1739343</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-03-15 03:12:46 -0700</bug_when>
    <thetext>Don&apos;t mind this last comment, it was mistakenly typed in this bug rather than bug 220848.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1739469</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-03-15 09:12:29 -0700</bug_when>
    <thetext>*** Bug 223172 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742180</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-22 04:35:57 -0700</bug_when>
    <thetext>&lt;rdar://problem/75685299&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1749347</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2021-04-12 13:12:23 -0700</bug_when>
    <thetext>Will address this in a larger refactor in bug 224433.

*** This bug has been marked as a duplicate of bug 224433 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>