Implement font feature values lookup for stylo

This commit is contained in:
Nazım Can Altınova 2017-08-23 20:38:00 -07:00
parent 4bdca9a312
commit 81be90cce2
5 changed files with 141 additions and 12 deletions

View file

@ -2722,12 +2722,13 @@ impl<'a> StyleBuilder<'a> {
&mut self,
value: longhands::${property.ident}::computed_value::T
) {
<% props_need_device = ["content", "list_style_type", "font_variant_alternates"] %>
self.${property.style_struct.ident}.mutate()
.set_${property.ident}(
value,
% if property.logical:
self.writing_mode,
% elif product == "gecko" and property.ident in ["content", "list_style_type"]:
% elif product == "gecko" and property.ident in props_need_device:
self.device,
% endif
);