mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Implement ToComputedValue for Box<T>
This commit is contained in:
parent
4e64ccde60
commit
7c31202dda
4 changed files with 27 additions and 3 deletions
|
@ -341,7 +341,11 @@
|
|||
}
|
||||
context.builder.put_${data.current_style_struct.name_lower}(s);
|
||||
% else:
|
||||
% if property.boxed:
|
||||
let computed = (**specified_value).to_computed_value(context);
|
||||
% else:
|
||||
let computed = specified_value.to_computed_value(context);
|
||||
% endif
|
||||
% if property.ident == "font_size":
|
||||
longhands::font_size::cascade_specified_font_size(
|
||||
context,
|
||||
|
|
|
@ -544,7 +544,11 @@ impl AnimationValue {
|
|||
longhands::system_font::resolve_system_font(sf, context);
|
||||
}
|
||||
% endif
|
||||
% if prop.boxed:
|
||||
let computed = (**val).to_computed_value(context);
|
||||
% else:
|
||||
let computed = val.to_computed_value(context);
|
||||
% endif
|
||||
Some(AnimationValue::${prop.camel_case}(
|
||||
% if prop.is_animatable_with_computed_value:
|
||||
computed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue