mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Refactor: use type alias instead of newtype
This commit is contained in:
parent
ec7efff14b
commit
ef9a690c9c
5 changed files with 17 additions and 55 deletions
|
@ -695,12 +695,12 @@ mod shorthand_serialization {
|
|||
authored: None
|
||||
});
|
||||
|
||||
let position = DeclaredValue::Value(PositionContainer(
|
||||
let position = DeclaredValue::Value(
|
||||
Position {
|
||||
horizontal: LengthOrPercentage::Length(Length::from_px(7f32)),
|
||||
vertical: LengthOrPercentage::Length(Length::from_px(4f32))
|
||||
}
|
||||
));
|
||||
);
|
||||
|
||||
let repeat = DeclaredValue::Value(Repeat::repeat_x);
|
||||
let attachment = DeclaredValue::Value(Attachment::scroll);
|
||||
|
@ -746,12 +746,12 @@ mod shorthand_serialization {
|
|||
authored: None
|
||||
});
|
||||
|
||||
let position = DeclaredValue::Value(PositionContainer(
|
||||
let position = DeclaredValue::Value(
|
||||
Position {
|
||||
horizontal: LengthOrPercentage::Length(Length::from_px(7f32)),
|
||||
vertical: LengthOrPercentage::Length(Length::from_px(4f32))
|
||||
}
|
||||
));
|
||||
);
|
||||
|
||||
let repeat = DeclaredValue::Value(Repeat::repeat_x);
|
||||
let attachment = DeclaredValue::Value(Attachment::scroll);
|
||||
|
@ -796,12 +796,12 @@ mod shorthand_serialization {
|
|||
authored: None
|
||||
});
|
||||
|
||||
let position = DeclaredValue::Value(PositionContainer(
|
||||
let position = DeclaredValue::Value(
|
||||
Position {
|
||||
horizontal: LengthOrPercentage::Length(Length::from_px(0f32)),
|
||||
vertical: LengthOrPercentage::Length(Length::from_px(0f32))
|
||||
}
|
||||
));
|
||||
);
|
||||
|
||||
let repeat = DeclaredValue::Value(Repeat::repeat_x);
|
||||
let attachment = DeclaredValue::Value(Attachment::scroll);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue