Changeset 291039 in webkit
- Timestamp:
- Mar 9, 2022 4:45:26 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/graphics/FontTaggedSettings.cpp (modified) (1 diff)
-
Source/WebCore/platform/graphics/FontTaggedSettings.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
r291037 r291039 1 2022-03-08 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] font-feature-settings should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237587 5 6 Reviewed by Antti Koivisto. 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-08 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
r291037 r291039 2 2 FAIL Animation of font in ::marker assert_in_array: value "italic normal 500 expanded 15px/35px -webkit-standard" not in array ["italic small-caps 500 expanded 15px / 35px Ahem", "italic small-caps 500 expanded 15px/35px Ahem"] 3 3 FAIL Animation of font-family in ::marker assert_equals: expected "Ahem" but got "-webkit-standard" 4 FAIL Animation of font-feature-settings in ::marker assert_equals: expected "\"smcp\"" but got "normal" 4 PASS Animation of font-feature-settings in ::marker 5 5 PASS Animation of font-kerning in ::marker 6 6 PASS Animation of font-size in ::marker -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/accumulation-per-property-001-expected.txt
r291037 r291039 222 222 PASS float: "right" onto "left" 223 223 PASS float: "left" onto "right" 224 PASS font-feature-settings (type: discrete) has testAccumulation function 225 PASS font-feature-settings: "normal" onto ""liga" 5" 226 PASS font-feature-settings: ""liga" 5" onto "normal" 224 227 PASS font-kerning (type: discrete) has testAccumulation function 225 228 PASS font-kerning: "normal" onto "auto" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/addition-per-property-001-expected.txt
r291037 r291039 222 222 PASS float: "right" onto "left" 223 223 PASS float: "left" onto "right" 224 PASS font-feature-settings (type: discrete) has testAddition function 225 PASS font-feature-settings: "normal" onto ""liga" 5" 226 PASS font-feature-settings: ""liga" 5" onto "normal" 224 227 PASS font-kerning (type: discrete) has testAddition function 225 228 PASS font-kerning: "normal" onto "auto" -
trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/animation-model/animation-types/interpolation-per-property-001-expected.txt
r291037 r291039 266 266 PASS float uses discrete animation when animating between "left" and "right" with effect easing 267 267 PASS float uses discrete animation when animating between "left" and "right" with keyframe easing 268 PASS font-feature-settings (type: discrete) has testInterpolation function 269 PASS font-feature-settings uses discrete animation when animating between ""liga" 5" and "normal" with linear easing 270 PASS font-feature-settings uses discrete animation when animating between ""liga" 5" and "normal" with effect easing 271 PASS font-feature-settings uses discrete animation when animating between ""liga" 5" and "normal" with keyframe easing 268 272 PASS font-kerning (type: discrete) has testInterpolation function 269 273 PASS font-kerning uses discrete animation when animating between "auto" and "normal" with linear easing -
trunk/Source/WebCore/ChangeLog
r291037 r291039 1 2022-03-08 Antoine Quint <graouts@webkit.org> 2 3 [web-animations] font-feature-settings should support discrete animation 4 https://bugs.webkit.org/show_bug.cgi?id=237587 5 6 Reviewed by Antti Koivisto. 7 8 * animation/CSSPropertyAnimation.cpp: 9 (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): 10 * platform/graphics/FontTaggedSettings.cpp: 11 (WebCore::operator<<): 12 * platform/graphics/FontTaggedSettings.h: 13 * rendering/style/RenderStyle.cpp: 14 (WebCore::RenderStyle::setFontPalette): 15 (WebCore::RenderStyle::setFontFeatureSettings): 16 * rendering/style/RenderStyle.h: 17 (WebCore::RenderStyle::fontFeatureSettings const): 18 1 19 2022-03-08 Antoine Quint <graouts@webkit.org> 2 20 -
trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp
r291037 r291039 2810 2810 new DiscretePropertyWrapper<TextDecorationSkipInk>(CSSPropertyTextDecorationSkipInk, &RenderStyle::textDecorationSkipInk, &RenderStyle::setTextDecorationSkipInk), 2811 2811 new DiscretePropertyWrapper<ColorInterpolation>(CSSPropertyColorInterpolation, &RenderStyle::colorInterpolation, &RenderStyle::setColorInterpolation), 2812 new DiscretePropertyWrapper<Kerning>(CSSPropertyFontKerning, &RenderStyle::fontKerning, &RenderStyle::setFontKerning) 2812 new DiscretePropertyWrapper<Kerning>(CSSPropertyFontKerning, &RenderStyle::fontKerning, &RenderStyle::setFontKerning), 2813 new DiscretePropertyWrapper<FontFeatureSettings>(CSSPropertyFontFeatureSettings, &RenderStyle::fontFeatureSettings, &RenderStyle::setFontFeatureSettings) 2813 2814 }; 2814 2815 const unsigned animatableLonghandPropertiesCount = WTF_ARRAY_LENGTH(animatableLonghandPropertyWrappers); -
trunk/Source/WebCore/platform/graphics/FontTaggedSettings.cpp
r275650 r291039 32 32 namespace WebCore { 33 33 34 TextStream& operator<<(TextStream& ts, const FontTaggedSettings<int>& item) 35 { 36 for (unsigned i = 0; i < item.size(); ++i) { 37 auto& variation = item.at(i); 38 StringBuilder s; 39 s.append(variation.tag()[0]); 40 s.append(variation.tag()[1]); 41 s.append(variation.tag()[2]); 42 s.append(variation.tag()[3]); 43 ts.dumpProperty(s.toString(), item.at(i).value()); 44 } 45 return ts; 46 } 47 34 48 TextStream& operator<<(TextStream& ts, const FontTaggedSettings<float>& item) 35 49 { -
trunk/Source/WebCore/platform/graphics/FontTaggedSettings.h
r278253 r291039 220 220 using FontVariationSettings = FontTaggedSettings<float>; 221 221 222 TextStream& operator<<(TextStream&, const FontTaggedSettings<int>&); 222 223 TextStream& operator<<(TextStream&, const FontTaggedSettings<float>&); 223 224 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r291037 r291039 2030 2030 auto description = fontDescription(); 2031 2031 description.setKerning(kerning); 2032 2033 setFontDescription(WTFMove(description)); 2034 fontCascade().update(currentFontSelector); 2035 } 2036 2037 void RenderStyle::setFontFeatureSettings(FontFeatureSettings settings) 2038 { 2039 FontSelector* currentFontSelector = fontCascade().fontSelector(); 2040 auto description = fontDescription(); 2041 description.setFeatureSettings(WTFMove(settings)); 2032 2042 2033 2043 setFontDescription(WTFMove(description)); -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r291037 r291039 372 372 FontPalette fontPalette() const { return fontDescription().fontPalette(); } 373 373 Kerning fontKerning() const { return fontDescription().kerning(); } 374 FontFeatureSettings fontFeatureSettings() const { return fontDescription().featureSettings(); } 374 375 375 376 const Length& textIndent() const { return m_rareInheritedData->indent; } … … 992 993 void setFontPalette(FontPalette); 993 994 void setFontKerning(Kerning); 995 void setFontFeatureSettings(FontFeatureSettings); 994 996 995 997 void setColor(const Color&);
Note: See TracChangeset
for help on using the changeset viewer.