servo: Merge #18593 - Update inherited prop state for animation (from jryans:stylo-anim-inherit-context); r=heycam

https://bugzilla.mozilla.org/show_bug.cgi?id=1401256

Source-Repo: https://github.com/servo/servo
Source-Revision: 83705a8fa8992a974b32acc6635c7dfeed1afa50

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 08724f2f81fd5297eee8da5bbb3e12a16957e828
This commit is contained in:
J. Ryan Stinnett 2017-09-21 16:43:37 -05:00
Родитель 136001aa15
Коммит d5e79945ae
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -576,6 +576,12 @@ impl AnimationValue {
% for prop in data.longhands:
% if prop.animatable:
PropertyDeclaration::${prop.camel_case}(ref val) => {
context.for_non_inherited_property =
% if prop.style_struct.inherited:
None;
% else:
Some(LonghandId::${prop.camel_case});
% endif
% if prop.ident in SYSTEM_FONT_LONGHANDS and product == "gecko":
if let Some(sf) = val.get_system() {
longhands::system_font::resolve_system_font(sf, context);