mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}
Renaming the variable helped make sure I looked at every use.
This commit is contained in:
parent
f1300bb98b
commit
ddb4e369dd
52 changed files with 870 additions and 469 deletions
|
@ -391,7 +391,7 @@ impl AnimationValue {
|
|||
x.boxed,
|
||||
not x.is_animatable_with_computed_value,
|
||||
x.style_struct.inherited,
|
||||
x.ident in SYSTEM_FONT_LONGHANDS and product == "gecko",
|
||||
x.ident in SYSTEM_FONT_LONGHANDS and engine == "gecko",
|
||||
)
|
||||
%>
|
||||
|
||||
|
@ -851,7 +851,7 @@ impl Animate for AnimatedFilter {
|
|||
Ok(Filter::${func}(animate_multiplicative_factor(this, other, procedure)?))
|
||||
},
|
||||
% endfor
|
||||
% if product == "gecko":
|
||||
% if engine == "gecko":
|
||||
(&Filter::DropShadow(ref this), &Filter::DropShadow(ref other)) => {
|
||||
Ok(Filter::DropShadow(this.animate(other, procedure)?))
|
||||
},
|
||||
|
@ -871,7 +871,7 @@ impl ToAnimatedZero for AnimatedFilter {
|
|||
% for func in ['Brightness', 'Contrast', 'Opacity', 'Saturate']:
|
||||
Filter::${func}(_) => Ok(Filter::${func}(1.)),
|
||||
% endfor
|
||||
% if product == "gecko":
|
||||
% if engine == "gecko":
|
||||
Filter::DropShadow(ref this) => Ok(Filter::DropShadow(this.to_animated_zero()?)),
|
||||
% endif
|
||||
_ => Err(()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue