Title: [270597] trunk
Revision
270597
Author
[email protected]
Date
2020-12-09 12:55:17 -0800 (Wed, 09 Dec 2020)

Log Message

text-decoration-color animation should not be discrete
https://bugs.webkit.org/show_bug.cgi?id=219691
<rdar://problem/72138361>

Reviewed by Simon Fraser.

LayoutTests/imported/w3c:

* web-platform-tests/css/css-transitions/properties-value-003-expected.txt:
* web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:

Source/WebCore:

We mistakenly added animation support for text-decoration-color in r269812 as a discrete property.
We now correctly make it a property that supports interpolation of the color type.

* animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):

Modified Paths

Diff

Modified: trunk/LayoutTests/imported/w3c/ChangeLog (270596 => 270597)


--- trunk/LayoutTests/imported/w3c/ChangeLog	2020-12-09 20:40:22 UTC (rev 270596)
+++ trunk/LayoutTests/imported/w3c/ChangeLog	2020-12-09 20:55:17 UTC (rev 270597)
@@ -1,5 +1,16 @@
 2020-12-09  Antoine Quint  <[email protected]>
 
+        text-decoration-color animation should not be discrete
+        https://bugs.webkit.org/show_bug.cgi?id=219691
+        <rdar://problem/72138361>
+
+        Reviewed by Simon Fraser.
+
+        * web-platform-tests/css/css-transitions/properties-value-003-expected.txt:
+        * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt:
+
+2020-12-09  Antoine Quint  <[email protected]>
+
         REGRESSION (r269812): Amazon Prime: thumbnail fails to expand properly
         https://bugs.webkit.org/show_bug.cgi?id=219692
         <rdar://problem/71878636>

Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/properties-value-003-expected.txt (270596 => 270597)


--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/properties-value-003-expected.txt	2020-12-09 20:40:22 UTC (rev 270596)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-transitions/properties-value-003-expected.txt	2020-12-09 20:55:17 UTC (rev 270597)
@@ -47,8 +47,8 @@
 FAIL marker-offset length(cm) / events assert_equals: Expected TransitionEnd events triggered on .transition expected "marker-offset:2s" but got ""
 FAIL marker-offset length(in) / values assert_not_equals: initial and target values may not match got disallowed value ""
 FAIL marker-offset length(in) / events assert_equals: Expected TransitionEnd events triggered on .transition expected "marker-offset:2s" but got ""
-FAIL text-decoration-color color(rgba) / values assert_not_equals: must not be target value after start got disallowed value "rgba(10, 10, 10, 0.4)"
-FAIL text-decoration-color color(rgba) / events assert_equals: Expected TransitionEnd events triggered on .transition expected "text-decoration-color:2s" but got ""
+PASS text-decoration-color color(rgba) / values
+PASS text-decoration-color color(rgba) / events
 PASS column-count integer(integer) / values
 PASS column-count integer(integer) / events
 PASS column-gap length(pt) / values

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


--- trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt	2020-12-09 20:40:22 UTC (rev 270596)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-002-expected.txt	2020-12-09 20:55:17 UTC (rev 270597)
@@ -143,12 +143,12 @@
 PASS text-align uses discrete animation when animating between "start" and "end" with effect easing
 PASS text-align uses discrete animation when animating between "start" and "end" with keyframe easing
 PASS text-decoration-color (type: color) has testInterpolation function
-FAIL text-decoration-color supports animating as color of rgb() assert_equals: The value should be rgb(128, 0, 128) at 500ms expected "rgb(128, 0, 128)" but got "rgb(0, 0, 255)"
-FAIL text-decoration-color supports animating as color of #RGB assert_equals: The value should be rgb(128, 0, 128) at 500ms expected "rgb(128, 0, 128)" but got "rgb(0, 0, 255)"
-FAIL text-decoration-color supports animating as color of hsl() assert_equals: The value should be rgb(128, 0, 128) at 500ms expected "rgb(128, 0, 128)" but got "rgb(0, 0, 255)"
-FAIL text-decoration-color supports animating as color of #RGBa assert_equals: The value should be rgba(85, 0, 170, 0.6) at 500ms expected "rgba(85, 0, 170, 0.6)" but got "rgba(0, 0, 255, 0.8)"
-FAIL text-decoration-color supports animating as color of rgba() assert_equals: The value should be rgba(85, 0, 170, 0.6) at 500ms expected "rgba(85, 0, 170, 0.6)" but got "rgba(0, 0, 255, 0.8)"
-FAIL text-decoration-color supports animating as color of hsla() assert_equals: The value should be rgba(85, 0, 170, 0.6) at 500ms expected "rgba(85, 0, 170, 0.6)" but got "rgba(0, 0, 255, 0.8)"
+PASS text-decoration-color supports animating as color of rgb()
+PASS text-decoration-color supports animating as color of #RGB
+PASS text-decoration-color supports animating as color of hsl()
+PASS text-decoration-color supports animating as color of #RGBa
+PASS text-decoration-color supports animating as color of rgba()
+PASS text-decoration-color supports animating as color of hsla()
 PASS text-decoration-line (type: discrete) has testInterpolation function
 PASS text-decoration-line uses discrete animation when animating between "underline" and "overline" with linear easing
 PASS text-decoration-line uses discrete animation when animating between "underline" and "overline" with effect easing

Modified: trunk/Source/WebCore/ChangeLog (270596 => 270597)


--- trunk/Source/WebCore/ChangeLog	2020-12-09 20:40:22 UTC (rev 270596)
+++ trunk/Source/WebCore/ChangeLog	2020-12-09 20:55:17 UTC (rev 270597)
@@ -1,3 +1,17 @@
+2020-12-09  Antoine Quint  <[email protected]>
+
+        text-decoration-color animation should not be discrete
+        https://bugs.webkit.org/show_bug.cgi?id=219691
+        <rdar://problem/72138361>
+
+        Reviewed by Simon Fraser.
+
+        We mistakenly added animation support for text-decoration-color in r269812 as a discrete property.
+        We now correctly make it a property that supports interpolation of the color type.
+
+        * animation/CSSPropertyAnimation.cpp:
+        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
+
 2020-12-09  Ryan Haddad  <[email protected]>
 
         Unreviewed, reverting r270544 and r270569.

Modified: trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp (270596 => 270597)


--- trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2020-12-09 20:40:22 UTC (rev 270596)
+++ trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp	2020-12-09 20:55:17 UTC (rev 270597)
@@ -1896,6 +1896,7 @@
         new PropertyWrapperFontStyle(),
         new PropertyWrapper<TextDecorationThickness>(CSSPropertyTextDecorationThickness, &RenderStyle::textDecorationThickness, &RenderStyle::setTextDecorationThickness),
         new PropertyWrapper<TextUnderlineOffset>(CSSPropertyTextUnderlineOffset, &RenderStyle::textUnderlineOffset, &RenderStyle::setTextUnderlineOffset),
+        new PropertyWrapperVisitedAffectedColor(CSSPropertyTextDecorationColor, &RenderStyle::textDecorationColor, &RenderStyle::setTextDecorationColor, &RenderStyle::visitedLinkTextDecorationColor, &RenderStyle::setVisitedLinkTextDecorationColor),
 
         new LengthPropertyWrapper(CSSPropertyFlexBasis, &RenderStyle::flexBasis, &RenderStyle::setFlexBasis),
         new PropertyWrapper<float>(CSSPropertyFlexGrow, &RenderStyle::flexGrow, &RenderStyle::setFlexGrow),
@@ -1964,7 +1965,6 @@
         new DiscretePropertyWrapper<RubyPosition>(CSSPropertyWebkitRubyPosition, &RenderStyle::rubyPosition, &RenderStyle::setRubyPosition),
         new DiscretePropertyWrapper<TableLayoutType>(CSSPropertyTableLayout, &RenderStyle::tableLayout, &RenderStyle::setTableLayout),
         new DiscretePropertyWrapper<TextAlignMode>(CSSPropertyTextAlign, &RenderStyle::textAlign, &RenderStyle::setTextAlign),
-        new DiscretePropertyWrapper<const Color&>(CSSPropertyTextDecorationColor, &RenderStyle::textDecorationColor, &RenderStyle::setTextDecorationColor),
         new DiscretePropertyWrapper<OptionSet<TextDecoration>>(CSSPropertyTextDecorationLine, &RenderStyle::textDecoration, &RenderStyle::setTextDecoration),
         new DiscretePropertyWrapper<TextDecorationStyle>(CSSPropertyTextDecorationStyle, &RenderStyle::textDecorationStyle, &RenderStyle::setTextDecorationStyle),
         new DiscretePropertyWrapper<const Color&>(CSSPropertyWebkitTextEmphasisColor, &RenderStyle::textEmphasisColor, &RenderStyle::setTextEmphasisColor),
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to