Bug 1401256 - servo: Update inherited prop state for animation (from jryans:stylo-anim-inherit-context). r=heycam, a=sledru
authorJ. Ryan Stinnett <jryans@gmail.com>
Thu, 21 Sep 2017 16:43:37 -0500
changeset 434204 61dd4d2e2a789916cbb49ca2625c5dca3b2c972d
parent 434203 eea4ead4541fac7668535b1f9ac4e39e1d6deef7
child 434205 46a47d4a1f5c1d453069b158d12e255114d312b0
push id1567
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 12:36:05 +0000
treeherdermozilla-release@e512c14a0406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam, sledru
bugs1401256
milestone57.0
Bug 1401256 - servo: Update inherited prop state for animation (from jryans:stylo-anim-inherit-context). r=heycam, a=sledru Source-Repo: https://github.com/servo/servo Source-Revision: 83705a8fa8992a974b32acc6635c7dfeed1afa50
servo/components/style/properties/helpers/animated_properties.mako.rs
--- a/servo/components/style/properties/helpers/animated_properties.mako.rs
+++ b/servo/components/style/properties/helpers/animated_properties.mako.rs
@@ -571,16 +571,22 @@ impl AnimationValue {
         initial: &ComputedValues
     ) -> Option<Self> {
         use properties::LonghandId;
 
         match *decl {
             % 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);
                 }
             % endif
             % if prop.boxed:
             let computed = (**val).to_computed_value(context);
             % else: