mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Remove some uses of trivial_to_computed_value
This commit is contained in:
parent
491a79ee4e
commit
afaa00a344
7 changed files with 8 additions and 21 deletions
|
@ -509,7 +509,7 @@ impl From<GridAutoFlow> for u8 {
|
|||
}
|
||||
|
||||
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
||||
#[derive(Clone, Debug, PartialEq, ToCss)]
|
||||
#[derive(Clone, Debug, PartialEq, ToComputedValue, ToCss)]
|
||||
/// https://drafts.csswg.org/css-grid/#named-grid-area
|
||||
pub struct TemplateAreas {
|
||||
/// `named area` containing for each template area
|
||||
|
@ -614,10 +614,8 @@ impl Parse for TemplateAreas {
|
|||
}
|
||||
}
|
||||
|
||||
trivial_to_computed_value!(TemplateAreas);
|
||||
|
||||
/// Arc type for `Arc<TemplateAreas>`
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToCss)]
|
||||
#[derive(Clone, Debug, MallocSizeOf, PartialEq, ToComputedValue, ToCss)]
|
||||
pub struct TemplateAreasArc(#[ignore_malloc_size_of = "Arc"] pub Arc<TemplateAreas>);
|
||||
|
||||
impl Parse for TemplateAreasArc {
|
||||
|
@ -631,8 +629,6 @@ impl Parse for TemplateAreasArc {
|
|||
}
|
||||
}
|
||||
|
||||
trivial_to_computed_value!(TemplateAreasArc);
|
||||
|
||||
#[cfg_attr(feature = "gecko", derive(MallocSizeOf))]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
/// Not associated with any particular grid item, but can
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue