mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Further changes required by Servo
This commit is contained in:
parent
67f9b97735
commit
4f0e0c888c
4 changed files with 47 additions and 5 deletions
|
@ -686,7 +686,11 @@ impl FontFamily {
|
|||
pub fn parse_specified<'i, 't>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>> {
|
||||
let values = input.parse_comma_separated(SingleFontFamily::parse)?;
|
||||
Ok(FontFamily::Values(FontFamilyList {
|
||||
#[cfg(feature = "gecko")]
|
||||
list: crate::ArcSlice::from_iter(values.into_iter()),
|
||||
#[cfg(feature = "servo")]
|
||||
list: values.into_boxed_slice(),
|
||||
#[cfg(feature = "gecko")]
|
||||
fallback: computed::GenericFontFamily::None,
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue