<?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>10931</bug_id>
          
          <creation_ts>2006-09-18 21:05:10 -0700</creation_ts>
          <short_desc>WebCore needs a separate AnimationCompositor class for animation calculations</short_desc>
          <delta_ts>2012-02-13 10:47: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>SVG</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/2005/REC-SMIL2-20051213/animation.html#animationNS-AnimationSandwichModel</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>41761</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jeffschiller</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>55876</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2006-09-18 21:05:10 -0700</bug_when>
    <thetext>WebCore needs a separate AnimationCompositor class for animation calculations

KSVG2 had a hackish animation model in which a single class (KSVGTimeScheduler) held all of the logic necessary for animation (in a single function with a large switch statement).

A bette model for animation would involve at least:
1. a separate timer scheduling class
2. separate classes containing animation application logic for each of the basic animation elements
3. a animation compositor class, to orchestrate the application of animation

This bug covers implementing #3, the compositor.

The SMIL animation composition model (aka &quot;AnimationSandwichModel&quot;) is pretty well spelled out in:
http://www.w3.org/TR/2005/REC-SMIL2-20051213/animation.html#animationNS-AnimationSandwichModel

1. individual animation elements will need to know their priority (a monotonically increasing number based on parse order, or a override value manually specified on the element)
2. when the &quot;applyAnimations()&quot; method is called on the compositor, a specific target will be passed
3. animation elements targeting the passed element will be grabbed out of a hash and sorted into priority order.
4. the compositor will walk backwards through that priority list until either hitting the beginning or an animation with additive=&quot;replace&quot;.
5.  the compositor can then walk forwards to generate the new value from the original baseValue or replaced value.

This is a very rough sketch.

This bug covers breaking the existing KSVGTimeScheduler composition logic out into its own class, and wiring things up enough to at least confirm that simple animations work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>555379</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-02-13 10:47:44 -0800</bug_when>
    <thetext>This is long done.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>