style: Simplify some ComputedValueFlags setters.

This commit is contained in:
Emilio Cobos Álvarez 2018-01-04 14:45:38 +01:00
parent 7a9f99eda8
commit 10a1e1e15f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -2752,16 +2752,16 @@ impl<'a> StyleBuilder<'a> {
% endif % endif
% if not property.style_struct.inherited: % if not property.style_struct.inherited:
self.flags.insert(::properties::computed_value_flags::ComputedValueFlags::INHERITS_RESET_STYLE); self.flags.insert(ComputedValueFlags::INHERITS_RESET_STYLE);
self.modified_reset = true; self.modified_reset = true;
% endif % endif
% if property.ident == "content": % if property.ident == "content":
self.flags.insert(::properties::computed_value_flags::ComputedValueFlags::INHERITS_CONTENT); self.flags.insert(ComputedValueFlags::INHERITS_CONTENT);
% endif % endif
% if property.ident == "display": % if property.ident == "display":
self.flags.insert(::properties::computed_value_flags::ComputedValueFlags::INHERITS_DISPLAY); self.flags.insert(ComputedValueFlags::INHERITS_DISPLAY);
% endif % endif
self.${property.style_struct.ident}.mutate() self.${property.style_struct.ident}.mutate()