Skip to content
  • simon.fraser@apple.com's avatar
    2009-04-24 Simon Fraser <simon.fraser@apple.com> · 4a25ebb6
    simon.fraser@apple.com authored
            Reviewed by Darin Adler
    
            https://bugs.webkit.org/show_bug.cgi?id=23219
    
            Add support for transtions and animations of background-position, -webkit-background-size,
            -webkit-mask-position and -webkit-mask-size.
    
            Tests: transitions/background-transitions.html
                   transitions/mask-transitions.html
    
            * page/animation/AnimationBase.cpp:
            (WebCore::blendFunc):
            Add a blend func for LengthSize.
    
            (WebCore::ensurePropertyMap):
            Add wrappers for the new properties.
    
            (WebCore::addShorthandProperties):
            Add a shorthand property for CSSPropertyBackgroundPosition to map to
            CSSPropertyBackgroundPositionX and CSSPropertyBackgroundPositionY,
            add CSSPropertyWebkitMask for CSSPropertyWebkitMaskPosition, and add
            CSSPropertyWebkitMaskPosition for CSSPropertyWebkitMaskPositionX and
            CSSPropertyWebkitMaskPositionY.
    
            * rendering/style/RenderStyle.h:
            (WebCore::InheritedFlags::setBackgroundXPosition):
            (WebCore::InheritedFlags::setBackgroundYPosition):
            (WebCore::InheritedFlags::setBackgroundSize):
            (WebCore::InheritedFlags::setMaskXPosition):
            (WebCore::InheritedFlags::setMaskYPosition):
            (WebCore::InheritedFlags::setMaskSize):
            Add setters for the properties that can be animated now.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@42823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4a25ebb6