mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Shrink custom property maps before making them immutable.
Differential Revision: https://phabricator.services.mozilla.com/D96132
This commit is contained in:
parent
5d388745d8
commit
bdbe8fde42
1 changed files with 1 additions and 0 deletions
|
@ -662,6 +662,7 @@ impl<'a> CustomPropertiesBuilder<'a> {
|
|||
let inherited = self.inherited.as_ref().map(|m| &***m);
|
||||
substitute_all(&mut map, inherited, self.device);
|
||||
}
|
||||
map.shrink_to_fit();
|
||||
Some(Arc::new(map))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue