Changeset 291129 in webkit


Ignore:
Timestamp:
Mar 10, 2022 1:47:34 PM (4 months ago)
Author:
graouts@webkit.org
Message:

[web-animations] scroll-behavior should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237723

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

  • web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt:
  • web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt:
  • web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:

Source/WebCore:

  • animation/CSSPropertyAnimation.cpp:

(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r291128 r291129  
     12022-03-10  Antoine Quint  <graouts@webkit.org>
     2
     3        [web-animations] scroll-behavior should support discrete animation
     4        https://bugs.webkit.org/show_bug.cgi?id=237723
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt:
     9        * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt:
     10        * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:
     11
    1122022-03-10  Antoine Quint  <graouts@webkit.org>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt

    r291128 r291129  
    114114PASS resize: "horizontal" onto "both"
    115115PASS resize: "both" onto "horizontal"
     116PASS scroll-behavior (type: discrete) has testAccumulation function
     117PASS scroll-behavior: "smooth" onto "auto"
     118PASS scroll-behavior: "auto" onto "smooth"
    116119PASS shape-outside (type: discrete) has testAccumulation function
    117120PASS shape-outside: "url("http://localhost/test-2")" onto "url("http://localhost/test-1")"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt

    r291128 r291129  
    114114PASS resize: "horizontal" onto "both"
    115115PASS resize: "both" onto "horizontal"
     116PASS scroll-behavior (type: discrete) has testAddition function
     117PASS scroll-behavior: "smooth" onto "auto"
     118PASS scroll-behavior: "auto" onto "smooth"
    116119PASS shape-outside (type: discrete) has testAddition function
    117120PASS shape-outside: "url("http://localhost/test-2")" onto "url("http://localhost/test-1")"
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt

    r291128 r291129  
    134134PASS resize uses discrete animation when animating between "both" and "horizontal" with effect easing
    135135PASS resize uses discrete animation when animating between "both" and "horizontal" with keyframe easing
     136PASS scroll-behavior (type: discrete) has testInterpolation function
     137PASS scroll-behavior uses discrete animation when animating between "auto" and "smooth" with linear easing
     138PASS scroll-behavior uses discrete animation when animating between "auto" and "smooth" with effect easing
     139PASS scroll-behavior uses discrete animation when animating between "auto" and "smooth" with keyframe easing
    136140PASS shape-outside (type: discrete) has testInterpolation function
    137141PASS shape-outside uses discrete animation when animating between "url("http://localhost/test-1")" and "url("http://localhost/test-2")" with linear easing
  • trunk/Source/WebCore/ChangeLog

    r291128 r291129  
     12022-03-10  Antoine Quint  <graouts@webkit.org>
     2
     3        [web-animations] scroll-behavior should support discrete animation
     4        https://bugs.webkit.org/show_bug.cgi?id=237723
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * animation/CSSPropertyAnimation.cpp:
     9        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
     10
    1112022-03-10  Antoine Quint  <graouts@webkit.org>
    212
  • trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp

    r291128 r291129  
    30893089        new DiscretePropertyWrapper<FontVariantCaps>(CSSPropertyFontVariantCaps, &RenderStyle::fontVariantCaps, &RenderStyle::setFontVariantCaps),
    30903090        new GridTemplateAreasWrapper,
    3091         new QuotesWrapper
     3091        new QuotesWrapper,
     3092        new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling)
    30923093    };
    30933094    const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
Note: See TracChangeset for help on using the changeset viewer.