nscsspropertyid_is_animatable handles shorthand property as well.

We consider the shorthand animatable if any of sub properties are animatable.
This commit is contained in:
Hiroyuki Ikezoe 2017-06-08 13:18:20 +09:00
parent b587bf9be1
commit c1ec6f6913

View file

@ -199,6 +199,16 @@ pub fn nscsspropertyid_is_animatable(property: nsCSSPropertyID) -> bool {
${helpers.to_nscsspropertyid(prop.ident)} => true,
% endif
% endfor
% for prop in data.shorthands_except_all():
<%
animatable = "false"
for sub in prop.sub_properties:
if sub.animatable:
animatable = "true"
break
%>
${helpers.to_nscsspropertyid(prop.ident)} => ${animatable},
% endfor
_ => false
}
}