mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Auto merge of #15917 - emilio:moz-fixes, r=Manishearth
Simplify some -moz-fixed handling code. This was introduced in #15916, but most of it is actually unreachable. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15917) <!-- Reviewable:end -->
This commit is contained in:
commit
430c7d924d
1 changed files with 2 additions and 9 deletions
|
@ -57,9 +57,6 @@
|
||||||
atom!("sans-serif") |
|
atom!("sans-serif") |
|
||||||
atom!("cursive") |
|
atom!("cursive") |
|
||||||
atom!("fantasy") |
|
atom!("fantasy") |
|
||||||
% if product == "gecko":
|
|
||||||
atom!("-moz-fixed") |
|
|
||||||
% endif
|
|
||||||
atom!("monospace") => {
|
atom!("monospace") => {
|
||||||
return FontFamily::Generic(input)
|
return FontFamily::Generic(input)
|
||||||
}
|
}
|
||||||
|
@ -70,9 +67,6 @@
|
||||||
"sans-serif" => return FontFamily::Generic(atom!("sans-serif")),
|
"sans-serif" => return FontFamily::Generic(atom!("sans-serif")),
|
||||||
"cursive" => return FontFamily::Generic(atom!("cursive")),
|
"cursive" => return FontFamily::Generic(atom!("cursive")),
|
||||||
"fantasy" => return FontFamily::Generic(atom!("fantasy")),
|
"fantasy" => return FontFamily::Generic(atom!("fantasy")),
|
||||||
% if product == "gecko":
|
|
||||||
"-moz-fixed" => return FontFamily::Generic(atom!("-moz-fixed")),
|
|
||||||
% endif
|
|
||||||
"monospace" => return FontFamily::Generic(atom!("monospace")),
|
"monospace" => return FontFamily::Generic(atom!("monospace")),
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
@ -150,10 +144,9 @@
|
||||||
if name == &atom!("-moz-fixed") {
|
if name == &atom!("-moz-fixed") {
|
||||||
return write!(dest, "monospace");
|
return write!(dest, "monospace");
|
||||||
}
|
}
|
||||||
write!(dest, "{}", name)
|
|
||||||
% else:
|
|
||||||
write!(dest, "{}", name)
|
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
|
write!(dest, "{}", name)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue