Changeset 291157 in webkit


Ignore:
Timestamp:
Mar 11, 2022 5:48:53 AM (4 months ago)
Author:
graouts@webkit.org
Message:

[web-animations] text-rendering should support discrete animation
https://bugs.webkit.org/show_bug.cgi?id=237777

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

    r291154 r291157  
     12022-03-11  Antoine Quint  <graouts@webkit.org>
     2
     3        [web-animations] text-rendering should support discrete animation
     4        https://bugs.webkit.org/show_bug.cgi?id=237777
     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-11  Antti Koivisto  <antti@apple.com>
    213
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt

    r291148 r291157  
    181181PASS text-overflow: "ellipsis" onto "clip"
    182182PASS text-overflow: "clip" onto "ellipsis"
     183PASS text-rendering (type: discrete) has testAccumulation function
     184PASS text-rendering: "optimizeLegibility" onto "optimizeSpeed"
     185PASS text-rendering: "optimizeSpeed" onto "optimizeLegibility"
    183186PASS text-shadow (type: textShadowList) has testAccumulation function
    184187PASS text-shadow: shadow
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt

    r291148 r291157  
    181181PASS text-overflow: "ellipsis" onto "clip"
    182182PASS text-overflow: "clip" onto "ellipsis"
     183PASS text-rendering (type: discrete) has testAddition function
     184PASS text-rendering: "optimizeLegibility" onto "optimizeSpeed"
     185PASS text-rendering: "optimizeSpeed" onto "optimizeLegibility"
    183186PASS text-shadow (type: textShadowList) has testAddition function
    184187PASS text-shadow: shadow
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt

    r291148 r291157  
    214214PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with effect easing
    215215PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with keyframe easing
     216PASS text-rendering (type: discrete) has testInterpolation function
     217PASS text-rendering uses discrete animation when animating between "optimizeSpeed" and "optimizeLegibility" with linear easing
     218PASS text-rendering uses discrete animation when animating between "optimizeSpeed" and "optimizeLegibility" with effect easing
     219PASS text-rendering uses discrete animation when animating between "optimizeSpeed" and "optimizeLegibility" with keyframe easing
    216220PASS text-shadow (type: textShadowList) has testInterpolation function
    217221PASS text-shadow: from none to other
  • trunk/Source/WebCore/ChangeLog

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

    r291156 r291157  
    32483248        new GridTemplateAreasWrapper,
    32493249        new QuotesWrapper,
    3250         new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling)
     3250        new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling),
     3251        new DiscreteFontDescriptionTypedWrapper<TextRenderingMode>(CSSPropertyTextRendering, &FontCascadeDescription::textRenderingMode, &FontCascadeDescription::setTextRenderingMode),
    32513252    };
    32523253    const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
Note: See TracChangeset for help on using the changeset viewer.