Upgrade to Stylo e941241 (#36120)

* Upgrade to Stylo e941241

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Make test less fragile

Signed-off-by: Nico Burns <nico@nicoburns.com>

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
Nico Burns 2025-03-25 23:45:40 +13:00 committed by GitHub
parent b4a768cfc7
commit cee84c824f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 28 deletions

View file

@ -29,11 +29,9 @@ mod font_context {
use style::properties::longhands::font_variant_caps::computed_value::T as FontVariantCaps;
use style::properties::style_structs::Font as FontStyleStruct;
use style::values::computed::font::{
FamilyName, FontFamily, FontFamilyList, FontFamilyNameSyntax, FontSize, FontStretch,
FontStyle, FontWeight, SingleFontFamily,
FamilyName, FontFamily, FontFamilyList, FontFamilyNameSyntax, FontStretch, FontStyle,
FontWeight, SingleFontFamily,
};
use style::values::computed::{FontLanguageOverride, XLang};
use style::values::generics::font::LineHeight;
use stylo_atoms::Atom;
use webrender_api::{FontInstanceKey, FontKey, IdNamespace};
use webrender_traits::CrossProcessCompositorApi;
@ -194,18 +192,7 @@ mod font_context {
}
fn style() -> FontStyleStruct {
let mut style = FontStyleStruct {
font_family: FontFamily::serif(),
font_style: FontStyle::NORMAL,
font_variant_caps: FontVariantCaps::Normal,
font_weight: FontWeight::normal(),
font_size: FontSize::medium(),
font_stretch: FontStretch::hundred(),
hash: 0,
font_language_override: FontLanguageOverride::normal(),
line_height: LineHeight::Normal,
_x_lang: XLang::get_initial_value(),
};
let mut style = FontStyleStruct::initial_values();
style.compute_font_hash();
style
}