mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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>
This commit is contained in:
parent
01fa9a6b1b
commit
0d0bcdeb4d
8 changed files with 21 additions and 456 deletions
|
@ -115,7 +115,6 @@ impl FontTemplateDescriptor {
|
|||
}
|
||||
self.style = match css_font_template_descriptors.style {
|
||||
Some(ComputedFontStyleDescriptor::Italic) => (FontStyle::ITALIC, FontStyle::ITALIC),
|
||||
Some(ComputedFontStyleDescriptor::Normal) => (FontStyle::NORMAL, FontStyle::NORMAL),
|
||||
Some(ComputedFontStyleDescriptor::Oblique(angle_1, angle_2)) => (
|
||||
FontStyle::oblique(angle_1.to_float()),
|
||||
FontStyle::oblique(angle_2.to_float()),
|
||||
|
|
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue