mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Less cloning
This commit is contained in:
parent
c377d9c48e
commit
08801d94cd
6 changed files with 83 additions and 71 deletions
|
@ -206,7 +206,7 @@ impl InlineFormattingContext {
|
|||
}
|
||||
}
|
||||
|
||||
fn add_lengthpercentage(&mut self, lp: LengthPercentage) {
|
||||
fn add_lengthpercentage(&mut self, lp: &LengthPercentage) {
|
||||
if let Some(l) = lp.to_length() {
|
||||
self.add_length(l);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue