Changeset 291109 in webkit
- Timestamp:
- Mar 10, 2022 7:57:15 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/animation/CSSPropertyAnimation.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r291106 r291109 1 2022-03-10 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] font-variant-east-asian should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237665 5 6 Reviewed by Myles C. Maxfield. 7 8 * web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt: 9 * web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt: 10 * web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt: 11 * web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt: 12 1 13 2022-03-10 Lauro Moura <lmoura@igalia.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt
r291103 r291109 14 14 FAIL Animation of font-variant in ::marker assert_equals: expected "small-caps" but got "tabular-nums" 15 15 FAIL Animation of font-variant-caps in ::marker assert_equals: expected "small-caps" but got "normal" 16 FAIL Animation of font-variant-east-asian in ::marker assert_equals: expected "full-width" but got "normal" 16 PASS Animation of font-variant-east-asian in ::marker 17 17 FAIL Animation of font-variant-ligatures in ::marker assert_equals: expected "historical-ligatures" but got "normal" 18 18 FAIL Animation of font-variant-numeric in ::marker assert_equals: expected "slashed-zero" but got "tabular-nums" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt
r291104 r291109 258 258 FAIL font-variant-alternates: "stylistic(unknown)" onto "swash(unknown)" assert_equals: The value should be stylistic(unknown) at 0ms expected "stylistic(unknown)" but got "normal" 259 259 FAIL font-variant-alternates: "swash(unknown)" onto "stylistic(unknown)" assert_equals: The value should be swash(unknown) at 0ms expected "swash(unknown)" but got "normal" 260 PASS font-variant-east-asian (type: discrete) has testAccumulation function 261 PASS font-variant-east-asian: "proportional-width" onto "full-width" 262 PASS font-variant-east-asian: "full-width" onto "proportional-width" 260 263 PASS font-variation-settings (type: fontVariationSettings) has testAccumulation function 261 264 FAIL font-variation-settings with composite type accumulate assert_equals: The value should be "wght" 2.2 at 250ms expected "\"wght\" 2.2" but got "\"wght\" 1.2" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt
r291104 r291109 258 258 FAIL font-variant-alternates: "stylistic(unknown)" onto "swash(unknown)" assert_equals: The value should be stylistic(unknown) at 0ms expected "stylistic(unknown)" but got "normal" 259 259 FAIL font-variant-alternates: "swash(unknown)" onto "stylistic(unknown)" assert_equals: The value should be swash(unknown) at 0ms expected "swash(unknown)" but got "normal" 260 PASS font-variant-east-asian (type: discrete) has testAddition function 261 PASS font-variant-east-asian: "proportional-width" onto "full-width" 262 PASS font-variant-east-asian: "full-width" onto "proportional-width" 260 263 PASS font-variation-settings (type: fontVariationSettings) has testAddition function 261 264 FAIL font-variation-settings with composite type add assert_equals: The value should be "wght" 2.2 at 250ms expected "\"wght\" 2.2" but got "\"wght\" 1.2" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt
r291104 r291109 314 314 FAIL font-variant-alternates uses discrete animation when animating between "swash(unknown)" and "stylistic(unknown)" with effect easing assert_equals: The value should be swash(unknown) at 0ms expected "swash(unknown)" but got "normal" 315 315 FAIL font-variant-alternates uses discrete animation when animating between "swash(unknown)" and "stylistic(unknown)" with keyframe easing assert_equals: The value should be swash(unknown) at 0ms expected "swash(unknown)" but got "normal" 316 PASS font-variant-east-asian (type: discrete) has testInterpolation function 317 PASS font-variant-east-asian uses discrete animation when animating between "full-width" and "proportional-width" with linear easing 318 PASS font-variant-east-asian uses discrete animation when animating between "full-width" and "proportional-width" with effect easing 319 PASS font-variant-east-asian uses discrete animation when animating between "full-width" and "proportional-width" with keyframe easing 316 320 PASS font-variation-settings (type: fontVariationSettings) has testInterpolation function 317 321 PASS font-variation-settings supports animation as float -
trunk/Source/WebCore/ChangeLog
r291108 r291109 1 2022-03-10 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] font-variant-east-asian should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237665 5 6 Reviewed by Myles C. Maxfield. 7 8 * animation/CSSPropertyAnimation.cpp: 9 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 10 1 11 2022-03-10 Rob Buis <rbuis@igalia.com> 2 12 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r291104 r291109 2591 2591 } 2592 2592 } 2593 }; 2594 2595 class FontVariantEastAsianWrapper final : public AnimationPropertyWrapperBase { 2596 WTF_MAKE_FAST_ALLOCATED; 2597 public: 2598 FontVariantEastAsianWrapper() 2599 : AnimationPropertyWrapperBase(CSSPropertyFontVariantEastAsian) 2600 { 2601 } 2602 2603 private: 2604 bool canInterpolate(const RenderStyle&, const RenderStyle&, CompositeOperation) const override { return false; } 2605 2606 bool equals(const RenderStyle& a, const RenderStyle& b) const override 2607 { 2608 auto& aFontDescription = a.fontDescription(); 2609 auto& bFontDescription = b.fontDescription(); 2610 return aFontDescription.variantEastAsianVariant() == bFontDescription.variantEastAsianVariant() 2611 && aFontDescription.variantEastAsianWidth() == bFontDescription.variantEastAsianWidth() 2612 && aFontDescription.variantEastAsianRuby() == bFontDescription.variantEastAsianRuby(); 2613 } 2614 2615 void blend(RenderStyle& destination, const RenderStyle& from, const RenderStyle& to, const CSSPropertyBlendingContext& context) const override 2616 { 2617 ASSERT(!context.progress || context.progress == 1.0); 2618 auto& sourceFontDescription = (context.progress ? to : from).fontDescription(); 2619 2620 FontSelector* currentFontSelector = destination.fontCascade().fontSelector(); 2621 auto description = destination.fontDescription(); 2622 description.setVariantEastAsianVariant(sourceFontDescription.variantEastAsianVariant()); 2623 description.setVariantEastAsianWidth(sourceFontDescription.variantEastAsianWidth()); 2624 description.setVariantEastAsianRuby(sourceFontDescription.variantEastAsianRuby()); 2625 destination.setFontDescription(WTFMove(description)); 2626 destination.fontCascade().update(currentFontSelector); 2627 } 2628 2629 #if !LOG_DISABLED 2630 void logBlend(const RenderStyle&, const RenderStyle&, const RenderStyle&, double) const override 2631 { 2632 } 2633 #endif 2593 2634 }; 2594 2635 … … 2929 2970 new DiscretePropertyWrapper<WindRule>(CSSPropertyFillRule, &RenderStyle::fillRule, &RenderStyle::setFillRule), 2930 2971 new DiscretePropertyWrapper<FontSynthesis>(CSSPropertyFontSynthesis, &RenderStyle::fontSynthesis, &RenderStyle::setFontSynthesis), 2931 new DiscretePropertyWrapper<FontVariantAlternates>(CSSPropertyFontVariantAlternates, &RenderStyle::fontVariantAlternates, &RenderStyle::setFontVariantAlternates) 2972 new DiscretePropertyWrapper<FontVariantAlternates>(CSSPropertyFontVariantAlternates, &RenderStyle::fontVariantAlternates, &RenderStyle::setFontVariantAlternates), 2973 new FontVariantEastAsianWrapper 2932 2974 }; 2933 2975 const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers);
Note: See TracChangeset
for help on using the changeset viewer.