diff options
author | Oriol Brufau <obrufau@igalia.com> | 2025-03-04 01:19:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-04 00:19:46 +0000 |
commit | 0d0bcdeb4dd8849033d04385cd88a2471e53d87d (patch) | |
tree | 65c9329c9a3f3946ee1ede4d8687b99d8f446592 /components/fonts/system_font_service.rs | |
parent | 01fa9a6b1bda5372b0d17d0769411df4c9525547 (diff) | |
download | servo-0d0bcdeb4dd8849033d04385cd88a2471e53d87d.tar.gz servo-0d0bcdeb4dd8849033d04385cd88a2471e53d87d.zip |
Upgrade Stylo to 2025-03-01 (#35782)
* Upgrade Stylo to 2025-03-01
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Fixup for https://phabricator.services.mozilla.com/D236733
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Update test expectations
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
---------
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/fonts/system_font_service.rs')
-rw-r--r-- | components/fonts/system_font_service.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/components/fonts/system_font_service.rs b/components/fonts/system_font_service.rs index 6cbd5390122..61b36e699df 100644 --- a/components/fonts/system_font_service.rs +++ b/components/fonts/system_font_service.rs @@ -359,7 +359,6 @@ pub struct SystemFontServiceProxy { /// because the specified version of `FontStyle` contains floats. #[derive(Clone, Debug, Deserialize, Serialize)] pub enum ComputedFontStyleDescriptor { - Normal, Italic, Oblique(FontStyleFixedPoint, FontStyleFixedPoint), } @@ -416,7 +415,6 @@ impl From<&FontFaceRuleData> for CSSFontFaceDescriptors { fn style_to_computed(specified: &FontFaceStyle) -> ComputedFontStyleDescriptor { match specified { - FontFaceStyle::Normal => ComputedFontStyleDescriptor::Normal, FontFaceStyle::Italic => ComputedFontStyleDescriptor::Italic, FontFaceStyle::Oblique(angle_a, angle_b) => ComputedFontStyleDescriptor::Oblique( FixedPoint::from_float(angle_a.degrees()), |