mirror of
https://github.com/servo/servo.git
synced 2025-08-19 04:15:33 +01:00
Implement font feature values lookup for stylo
This commit is contained in:
parent
4bdca9a312
commit
81be90cce2
5 changed files with 141 additions and 12 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue