mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Opt into field bounds for #[derive(ToComputedValue)]
This commit is contained in:
parent
2efd06c12d
commit
4d0bf2ddf9
5 changed files with 55 additions and 46 deletions
|
@ -666,7 +666,7 @@ pub enum GridTemplateComponent<L, I> {
|
|||
/// `none` value.
|
||||
None,
|
||||
/// The grid `<track-list>`
|
||||
TrackList(TrackList<L, I>),
|
||||
TrackList(#[compute(field_bound)] TrackList<L, I>),
|
||||
/// A `subgrid <line-name-list>?`
|
||||
Subgrid(LineNameList),
|
||||
}
|
||||
|
|
|
@ -247,7 +247,6 @@ pub enum TransformOperation<Angle, Number, Length, Integer, LengthOrPercentage>
|
|||
#[allow(missing_docs)]
|
||||
#[css(comma, function = "interpolatematrix")]
|
||||
InterpolateMatrix {
|
||||
#[compute(ignore_bound)]
|
||||
from_list: Transform<
|
||||
TransformOperation<
|
||||
Angle,
|
||||
|
@ -257,7 +256,6 @@ pub enum TransformOperation<Angle, Number, Length, Integer, LengthOrPercentage>
|
|||
LengthOrPercentage,
|
||||
>,
|
||||
>,
|
||||
#[compute(ignore_bound)]
|
||||
to_list: Transform<
|
||||
TransformOperation<
|
||||
Angle,
|
||||
|
@ -273,7 +271,6 @@ pub enum TransformOperation<Angle, Number, Length, Integer, LengthOrPercentage>
|
|||
#[allow(missing_docs)]
|
||||
#[css(comma, function = "accumulatematrix")]
|
||||
AccumulateMatrix {
|
||||
#[compute(ignore_bound)]
|
||||
from_list: Transform<
|
||||
TransformOperation<
|
||||
Angle,
|
||||
|
@ -283,7 +280,6 @@ pub enum TransformOperation<Angle, Number, Length, Integer, LengthOrPercentage>
|
|||
LengthOrPercentage,
|
||||
>,
|
||||
>,
|
||||
#[compute(ignore_bound)]
|
||||
to_list: Transform<
|
||||
TransformOperation<
|
||||
Angle,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue