mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Make LengthPercentage not copy.
This is needed to support min() / max() / clamp(), etc. Differential Revision: https://phabricator.services.mozilla.com/D57249
This commit is contained in:
parent
a541046147
commit
789ddd9dc1
5 changed files with 58 additions and 49 deletions
|
@ -1373,7 +1373,11 @@ impl ComputedTranslate {
|
|||
LengthPercentage::zero(),
|
||||
Length::zero(),
|
||||
),
|
||||
Translate::Translate(tx, ty, tz) => (tx, ty, tz),
|
||||
Translate::Translate(ref tx, ref ty, ref tz) => (
|
||||
tx.clone(),
|
||||
ty.clone(),
|
||||
tz.clone(),
|
||||
),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue