mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Auto merge of #18593 - jryans:stylo-anim-inherit-context, r=heycam
Update inherited prop state for animation https://bugzilla.mozilla.org/show_bug.cgi?id=1401256 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18593) <!-- Reviewable:end -->
This commit is contained in:
commit
83705a8fa8
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