mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Attempt using version of Stylo with -x-lang enabled (#31737)
* Attempt using version of Stylo with -x-lang enabled Signed-off-by: Rhea Karty <rheakarty@gmail.com> * Added x-lang to initializer list to address failing tests. Signed-off-by: Rhea Karty <rheakarty@gmail.com> * Fix formatting (sorry) Signed-off-by: Rhea Karty <rheakarty@gmail.com> * Revert changes in Cargo.toml, update Cargo.lock. Signed-off-by: Rhea Karty <rheakarty@gmail.com> * Removed .git suffix from Stylo Signed-off-by: Rhea Karty <rheakarty@gmail.com> --------- Signed-off-by: Rhea Karty <rheakarty@gmail.com>
This commit is contained in:
parent
058319aa0b
commit
b3dc5c6958
2 changed files with 15 additions and 14 deletions
|
@ -25,7 +25,7 @@ use style::values::computed::font::{
|
|||
FamilyName, FontFamily, FontFamilyList, FontFamilyNameSyntax, FontSize, FontStretch, FontStyle,
|
||||
FontWeight, SingleFontFamily,
|
||||
};
|
||||
use style::values::computed::FontLanguageOverride;
|
||||
use style::values::computed::{FontLanguageOverride, XLang};
|
||||
use webrender_api::{FontInstanceKey, FontKey, IdNamespace};
|
||||
|
||||
struct TestFontSource {
|
||||
|
@ -112,6 +112,7 @@ fn style() -> FontStyleStruct {
|
|||
font_stretch: FontStretch::hundred(),
|
||||
hash: 0,
|
||||
font_language_override: FontLanguageOverride::normal(),
|
||||
_x_lang: XLang::get_initial_value(),
|
||||
};
|
||||
style.compute_font_hash();
|
||||
style
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue