mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Bug 1519958 - Improve stack size of grid templates and re-enable style struct size assertions disabled in the previous patch. r=boris
This re-enables the assertion which was disabled on the previous patch by doing a bit of boxing around. Differential Revision: https://phabricator.services.mozilla.com/D36599
This commit is contained in:
parent
3e39998068
commit
708ce04896
3 changed files with 10 additions and 6 deletions
|
@ -321,10 +321,11 @@ impl GridTemplateComponent<LengthPercentage, Integer> {
|
|||
) -> Result<Self, ParseError<'i>> {
|
||||
if allow_grid_template_subgrids() {
|
||||
if let Ok(t) = input.try(|i| LineNameList::parse(context, i)) {
|
||||
return Ok(GridTemplateComponent::Subgrid(t));
|
||||
return Ok(GridTemplateComponent::Subgrid(Box::new(t)));
|
||||
}
|
||||
}
|
||||
|
||||
TrackList::parse(context, input).map(GridTemplateComponent::TrackList)
|
||||
let track_list = TrackList::parse(context, input)?;
|
||||
Ok(GridTemplateComponent::TrackList(Box::new(track_list)))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue