mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Pack LengthPercentage better.
So that it takes one pointer instead of two, and doesn't make nsStylePosition's size blow up. This is not as ugly as I was fearing, thankfully, though it requires a bit of boilerplate. I think it's acceptable. Differential Revision: https://phabricator.services.mozilla.com/D58702
This commit is contained in:
parent
4d5bd94a2b
commit
88fe64d845
2 changed files with 315 additions and 58 deletions
|
@ -78,6 +78,7 @@ trivial_to_resolved_value!(computed::url::ComputedUrl);
|
|||
trivial_to_resolved_value!(computed::url::ComputedImageUrl);
|
||||
#[cfg(feature = "servo")]
|
||||
trivial_to_resolved_value!(html5ever::Prefix);
|
||||
trivial_to_resolved_value!(computed::LengthPercentage);
|
||||
|
||||
impl<A, B> ToResolvedValue for (A, B)
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue