mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update inherited prop state for animation
`AnimationValue` has its own path for conversion to computed values, so we need to update `for_non_inherited_property` in the context to match the property being converted. I didn't notice any other generic conversions, so hopefully this is the only missing path. MozReview-Commit-ID: HskrpMctmYE
This commit is contained in:
parent
5c797d1943
commit
c5c604b9c4
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue