Skip to content
  • dino@apple.com's avatar
    2010-06-25 Dean Jackson <dino@apple.com> · e519fcb2
    dino@apple.com authored
            Reviewed by Simon Fraser.
    
            https://bugs.webkit.org/show_bug.cgi?id=41188
            Animations should not require 0% and 100% keyframes
    
            When we are generating the animation lists in CSSStyleSelector,
            rather than bail if we notice that "from" or "to" are missing, we
            now generate synthetic keyframes for those cases.
    
            Tests: animations/missing-from-to-transforms.html
                   animations/missing-from-to.html
                   WebCore/manual-tests/animation-with-transition.html
    
            * css/CSSStyleSelector.cpp:
            (WebCore::CSSStyleSelector::styleForKeyframe):
                    Moved individual keyframe generation into a new function.
            (WebCore::CSSStyleSelector::keyframeStylesForAnimation):
                    Call the new function above for regular keyframes, and
                    also check for missing keyframes and generate them if
                    necessary.
            * css/CSSStyleSelector.h:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e519fcb2