style: Shrink custom property maps before making them immutable.

Differential Revision: https://phabricator.services.mozilla.com/D96132
This commit is contained in:
Emilio Cobos Álvarez 2020-11-06 02:37:44 +00:00
parent 5d388745d8
commit bdbe8fde42

View file

@ -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))
}
}