mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Serialize unquoted font-family without quote
This commit is contained in:
parent
54e2b7b2d5
commit
9991c496b3
8 changed files with 53 additions and 24 deletions
|
@ -17,7 +17,7 @@ pub type FontFaceRule = RefPtr<nsCSSFontFaceRule>;
|
|||
fn set_font_face_descriptors(descriptors: &mut CSSFontFaceDescriptors,
|
||||
data: FontFaceData) {
|
||||
// font-family
|
||||
descriptors.mFamily.set_string_from_atom(&data.family.0);
|
||||
descriptors.mFamily.set_string_from_atom(&data.family.name);
|
||||
|
||||
macro_rules! map_enum {
|
||||
($target:ident = ($data:ident: $prop:ident) {
|
||||
|
@ -74,8 +74,8 @@ fn set_font_face_descriptors(descriptors: &mut CSSFontFaceDescriptors,
|
|||
next!().set_font_format(&hint);
|
||||
}
|
||||
}
|
||||
Source::Local(ref name) => {
|
||||
next!().set_local_font(&name.0);
|
||||
Source::Local(ref family) => {
|
||||
next!().set_local_font(&family.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue