mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Convert TrackList's 'values' field to store only TrackSize.
It was storing both TrackSize and TrackRepeat before and TrackRepeat have to be converted into sequence of TrackSize during serialization. Instead of doing this in serialization process(which is hard and hacky), we converted to do this in parsing process. We were doing this conversion in the ComputedValue conversion. So we only had to move this process to parsing.
This commit is contained in:
parent
8e14d93602
commit
ade76f10b7
5 changed files with 92 additions and 130 deletions
|
@ -549,10 +549,10 @@ pub type TrackSize = GenericTrackSize<LengthOrPercentage>;
|
|||
|
||||
/// The computed value of a grid `<track-list>`
|
||||
/// (could also be `<auto-track-list>` or `<explicit-track-list>`)
|
||||
pub type TrackList = GenericTrackList<TrackSize>;
|
||||
pub type TrackList = GenericTrackList<LengthOrPercentage>;
|
||||
|
||||
/// `<grid-template-rows> | <grid-template-columns>`
|
||||
pub type GridTemplateComponent = GenericGridTemplateComponent<TrackSize>;
|
||||
pub type GridTemplateComponent = GenericGridTemplateComponent<LengthOrPercentage>;
|
||||
|
||||
impl ClipRectOrAuto {
|
||||
/// Return an auto (default for clip-rect and image-region) value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue