Auto merge of #8420 - craftytrickster:8371/generic-font-family, r=glennw

Enabled use of FontFamily enum type

https://github.com/servo/servo/issues/8371

In addition to replacing loose strings with the FontFamily enum in `font_cache_task.rs`, I also centralized the add_generic_font calls into one single function. If centralizing into one function is not desired or if anything else needs to be changed, please let me know.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8420)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-31 16:49:48 +05:30
commit 66c8aa8cda
5 changed files with 122 additions and 89 deletions

View file

@ -326,7 +326,7 @@ impl LayoutElementHelpers for LayoutJS<Element> {
PropertyDeclaration::FontFamily(
DeclaredValue::Value(
font_family::computed_value::T(vec![
font_family::computed_value::FontFamily::FamilyName(
font_family::computed_value::FontFamily::from_atom(
font_family)])))));
}