Serialize unquoted font-family without quote

This commit is contained in:
Nazım Can Altınova 2017-03-28 01:10:27 +03:00
parent 54e2b7b2d5
commit 9991c496b3
No known key found for this signature in database
GPG key ID: AF9BCD7CE6449954
8 changed files with 53 additions and 24 deletions

View file

@ -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);
}
}
}