Title: [291157] trunk
Revision
291157
Author
[email protected]
Date
2022-03-11 05:48:53 -0800 (Fri, 11 Mar 2022)

Log 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):

Modified Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (291156 => 291157)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2022-03-11 13:45:25 UTC (rev 291156)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2022-03-11 13:48:53 UTC (rev 291157)
@@ -1,3 +1,14 @@
+2022-03-11  Antoine Quint  <[email protected]>
+
+        [web-animations] text-rendering should support discrete animation
+        https://bugs.webkit.org/show_bug.cgi?id=237777
+
+        Reviewed by Antti Koivisto.
+
+        * 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:
+
 2022-03-11  Antti Koivisto  <[email protected]>
 
         [CSS Container Queries] Only apply inline-size containment when it is allowed

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt (291156 => 291157)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt	2022-03-11 13:45:25 UTC (rev 291156)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-002-expected.txt	2022-03-11 13:48:53 UTC (rev 291157)
@@ -180,6 +180,9 @@
 PASS text-overflow (type: discrete) has testAccumulation function
 PASS text-overflow: "ellipsis" onto "clip"
 PASS text-overflow: "clip" onto "ellipsis"
+PASS text-rendering (type: discrete) has testAccumulation function
+PASS text-rendering: "optimizeLegibility" onto "optimizeSpeed"
+PASS text-rendering: "optimizeSpeed" onto "optimizeLegibility"
 PASS text-shadow (type: textShadowList) has testAccumulation function
 PASS text-shadow: shadow
 PASS text-transform (type: discrete) has testAccumulation function

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt (291156 => 291157)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt	2022-03-11 13:45:25 UTC (rev 291156)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-002-expected.txt	2022-03-11 13:48:53 UTC (rev 291157)
@@ -180,6 +180,9 @@
 PASS text-overflow (type: discrete) has testAddition function
 PASS text-overflow: "ellipsis" onto "clip"
 PASS text-overflow: "clip" onto "ellipsis"
+PASS text-rendering (type: discrete) has testAddition function
+PASS text-rendering: "optimizeLegibility" onto "optimizeSpeed"
+PASS text-rendering: "optimizeSpeed" onto "optimizeLegibility"
 PASS text-shadow (type: textShadowList) has testAddition function
 PASS text-shadow: shadow
 PASS text-transform (type: discrete) has testAddition function

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt (291156 => 291157)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt	2022-03-11 13:45:25 UTC (rev 291156)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt	2022-03-11 13:48:53 UTC (rev 291157)
@@ -213,6 +213,10 @@
 PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with linear easing
 PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with effect easing
 PASS text-overflow uses discrete animation when animating between "clip" and "ellipsis" with keyframe easing
+PASS text-rendering (type: discrete) has testInterpolation function
+PASS text-rendering uses discrete animation when animating between "optimizeSpeed" and "optimizeLegibility" with linear easing
+PASS text-rendering uses discrete animation when animating between "optimizeSpeed" and "optimizeLegibility" with effect easing
+PASS text-rendering uses discrete animation when animating between "optimizeSpeed" and "optimizeLegibility" with keyframe easing
 PASS text-shadow (type: textShadowList) has testInterpolation function
 PASS text-shadow: from none to other
 PASS text-shadow: from other to none

Modified: trunk/Source/WebCore/ChangeLog (291156 => 291157)


--- trunk/Source/WebCore/ChangeLog	2022-03-11 13:45:25 UTC (rev 291156)
+++ trunk/Source/WebCore/ChangeLog	2022-03-11 13:48:53 UTC (rev 291157)
@@ -1,5 +1,15 @@
 2022-03-11  Antoine Quint  <[email protected]>
 
+        [web-animations] text-rendering should support discrete animation
+        https://bugs.webkit.org/show_bug.cgi?id=237777
+
+        Reviewed by Antti Koivisto.
+
+        * animation/CSSPropertyAnimation.cpp:
+        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+
+2022-03-11  Antoine Quint  <[email protected]>
+
         [web-animations] refactor discrete FontCascadeDescription to use dedicated animation wrappers
         https://bugs.webkit.org/show_bug.cgi?id=237776
 

Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (291156 => 291157)


--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2022-03-11 13:45:25 UTC (rev 291156)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2022-03-11 13:48:53 UTC (rev 291157)
@@ -3247,7 +3247,8 @@
         new DiscreteFontDescriptionTypedWrapper<FontVariantCaps>(CSSPropertyFontVariantCaps, &FontCascadeDescription::variantCaps, &FontCascadeDescription::setVariantCaps),
         new GridTemplateAreasWrapper,
         new QuotesWrapper,
-        new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling)
+        new DiscretePropertyWrapper<bool>(CSSPropertyScrollBehavior, &RenderStyle::useSmoothScrolling, &RenderStyle::setUseSmoothScrolling),
+        new DiscreteFontDescriptionTypedWrapper<TextRenderingMode>(CSSPropertyTextRendering, &FontCascadeDescription::textRenderingMode, &FontCascadeDescription::setTextRenderingMode),
     };
     const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to