implements nsStyleImage type properties animatable

This commit is contained in:
Daisuke Akatsuka 2017-07-05 13:09:21 +09:00
parent 4924a4832f
commit d885747a18
6 changed files with 240 additions and 4 deletions

View file

@ -414,7 +414,12 @@ impl AnimatedProperty {
let value: longhands::${prop.ident}::computed_value::T =
ToAnimatedValue::from_animated_value(value);
% endif
style.mutate_${prop.style_struct.ident.strip("_")}().set_${prop.ident}(value);
<% method = "style.mutate_" + prop.style_struct.ident.strip("_") + "().set_" + prop.ident %>
% if prop.has_uncacheable_values is "True":
${method}(value, &mut false);
% else:
${method}(value);
% endif
}
% endif
% endfor