aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/font_face.rs
diff options
context:
space:
mode:
authorNazım Can Altınova <canaltinova@gmail.com>2017-03-28 01:10:27 +0300
committerNazım Can Altınova <canaltinova@gmail.com>2017-03-30 23:40:23 +0300
commit9991c496b3947d1df1937d7fb70fb039f0fcc5f6 (patch)
treefcf7709e436f719a0ea915b1139c824788fb9aa4 /components/style/font_face.rs
parent54e2b7b2d5eaa2b59c8d922de2344677871370a1 (diff)
downloadservo-9991c496b3947d1df1937d7fb70fb039f0fcc5f6.tar.gz
servo-9991c496b3947d1df1937d7fb70fb039f0fcc5f6.zip
Serialize unquoted font-family without quote
Diffstat (limited to 'components/style/font_face.rs')
-rw-r--r--components/style/font_face.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/style/font_face.rs b/components/style/font_face.rs
index e585f15efaa..2b441ceb0d7 100644
--- a/components/style/font_face.rs
+++ b/components/style/font_face.rs
@@ -282,7 +282,10 @@ macro_rules! font_face_descriptors {
font_face_descriptors! {
mandatory descriptors = [
/// The name of this font face
- "font-family" family: FamilyName = FamilyName(atom!("")),
+ "font-family" family: FamilyName = FamilyName {
+ name: atom!(""),
+ quoted: true,
+ },
/// The alternative sources for this font face.
"src" sources: Vec<Source> = Vec::new(),
@@ -308,7 +311,10 @@ font_face_descriptors! {
font_face_descriptors! {
mandatory descriptors = [
/// The name of this font face
- "font-family" family: FamilyName = FamilyName(atom!("")),
+ "font-family" family: FamilyName = FamilyName {
+ name: atom!(""),
+ quoted: true,
+ },
/// The alternative sources for this font face.
"src" sources: Vec<Source> = Vec::new(),