Changeset 291115 in webkit
- Timestamp:
- Mar 10, 2022 8:47:04 AM (4 months ago)
- Location:
- trunk
- Files:
-
- 11 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) (1 diff)
-
Source/WebCore/platform/text/TextFlags.cpp (modified) (1 diff)
-
Source/WebCore/platform/text/TextFlags.h (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.cpp (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r291114 r291115 1 2022-03-10 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] font-variant-position should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237671 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 Antoine Quint <graouts@webkit.org> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt
r291114 r291115 17 17 PASS Animation of font-variant-ligatures in ::marker 18 18 FAIL Animation of font-variant-numeric in ::marker assert_equals: expected "slashed-zero" but got "tabular-nums" 19 FAIL Animation of font-variant-position in ::marker assert_equals: expected "sub" but got "normal" 19 PASS Animation of font-variant-position in ::marker 20 20 PASS Animation of font-weight in ::marker 21 21 PASS Animation of line-height in ::marker -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt
r291114 r291115 264 264 PASS font-variant-ligatures: "no-common-ligatures" onto "common-ligatures" 265 265 PASS font-variant-ligatures: "common-ligatures" onto "no-common-ligatures" 266 PASS font-variant-position (type: discrete) has testAccumulation function 267 PASS font-variant-position: "super" onto "sub" 268 PASS font-variant-position: "sub" onto "super" 266 269 PASS font-variation-settings (type: fontVariationSettings) has testAccumulation function 267 270 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
r291114 r291115 264 264 PASS font-variant-ligatures: "no-common-ligatures" onto "common-ligatures" 265 265 PASS font-variant-ligatures: "common-ligatures" onto "no-common-ligatures" 266 PASS font-variant-position (type: discrete) has testAddition function 267 PASS font-variant-position: "super" onto "sub" 268 PASS font-variant-position: "sub" onto "super" 266 269 PASS font-variation-settings (type: fontVariationSettings) has testAddition function 267 270 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
r291114 r291115 322 322 PASS font-variant-ligatures uses discrete animation when animating between "common-ligatures" and "no-common-ligatures" with effect easing 323 323 PASS font-variant-ligatures uses discrete animation when animating between "common-ligatures" and "no-common-ligatures" with keyframe easing 324 PASS font-variant-position (type: discrete) has testInterpolation function 325 PASS font-variant-position uses discrete animation when animating between "sub" and "super" with linear easing 326 PASS font-variant-position uses discrete animation when animating between "sub" and "super" with effect easing 327 PASS font-variant-position uses discrete animation when animating between "sub" and "super" with keyframe easing 324 328 PASS font-variation-settings (type: fontVariationSettings) has testInterpolation function 325 329 PASS font-variation-settings supports animation as float -
trunk/Source/WebCore/ChangeLog
r291114 r291115 1 2022-03-10 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] font-variant-position should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237671 5 6 Reviewed by Myles C. Maxfield. 7 8 * animation/CSSPropertyAnimation.cpp: 9 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 10 * platform/text/TextFlags.cpp: 11 (WebCore::operator<<): 12 * platform/text/TextFlags.h: 13 * rendering/style/RenderStyle.cpp: 14 (WebCore::RenderStyle::setFontVariantAlternates): 15 (WebCore::RenderStyle::setFontVariantPosition): 16 * rendering/style/RenderStyle.h: 17 (WebCore::RenderStyle::fontVariantPosition const): 18 1 19 2022-03-10 Antoine Quint <graouts@webkit.org> 2 20 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r291114 r291115 3015 3015 new DiscretePropertyWrapper<FontVariantAlternates>(CSSPropertyFontVariantAlternates, &RenderStyle::fontVariantAlternates, &RenderStyle::setFontVariantAlternates), 3016 3016 new FontVariantEastAsianWrapper, 3017 new FontVariantLigaturesWrapper 3017 new FontVariantLigaturesWrapper, 3018 new DiscretePropertyWrapper<FontVariantPosition>(CSSPropertyFontVariantPosition, &RenderStyle::fontVariantPosition, &RenderStyle::setFontVariantPosition) 3018 3019 }; 3019 3020 const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers); -
trunk/Source/WebCore/platform/text/TextFlags.cpp
r291104 r291115 50 50 } 51 51 52 WTF::TextStream& operator<<(TextStream& ts, FontVariantPosition position) 53 { 54 switch (position) { 55 case FontVariantPosition::Normal: ts << "normal"; break; 56 case FontVariantPosition::Subscript: ts << "subscript"; break; 57 case FontVariantPosition::Superscript: ts << "superscript"; break; 58 } 59 return ts; 60 } 61 52 62 } // namespace WebCore -
trunk/Source/WebCore/platform/text/TextFlags.h
r291104 r291115 86 86 enum class FontVariantLigatures : uint8_t { Normal, Yes, No }; 87 87 enum class FontVariantPosition : uint8_t { Normal, Subscript, Superscript }; 88 89 WTF::TextStream& operator<<(WTF::TextStream&, FontVariantPosition); 88 90 89 91 enum class FontVariantCaps : uint8_t { -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r291104 r291115 2070 2070 auto description = fontDescription(); 2071 2071 description.setVariantAlternates(value); 2072 2073 setFontDescription(WTFMove(description)); 2074 fontCascade().update(currentFontSelector); 2075 } 2076 2077 void RenderStyle::setFontVariantPosition(FontVariantPosition value) 2078 { 2079 FontSelector* currentFontSelector = fontCascade().fontSelector(); 2080 auto description = fontDescription(); 2081 description.setVariantPosition(value); 2072 2082 2073 2083 setFontDescription(WTFMove(description)); -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r291104 r291115 376 376 FontSynthesis fontSynthesis() const { return fontDescription().fontSynthesis(); } 377 377 FontVariantAlternates fontVariantAlternates() const { return fontDescription().variantAlternates(); } 378 FontVariantPosition fontVariantPosition() const { return fontDescription().variantPosition(); } 378 379 379 380 const Length& textIndent() const { return m_rareInheritedData->indent; } … … 1002 1003 void setFontSynthesis(FontSynthesis); 1003 1004 void setFontVariantAlternates(FontVariantAlternates); 1005 void setFontVariantPosition(FontVariantPosition); 1004 1006 1005 1007 void setColor(const Color&);
Note: See TracChangeset
for help on using the changeset viewer.