Box more specified values to bring SpecifiedValue/PropertyDeclaration sizes down to 24/32 bytes.

MozReview-Commit-ID: xstAfjVQqi
This commit is contained in:
Bobby Holley 2017-03-17 16:37:43 -07:00
parent 8f3f8098c3
commit 97dd3a1b08
12 changed files with 58 additions and 50 deletions

View file

@ -623,13 +623,13 @@ impl LayoutElementHelpers for LayoutJS<Element> {
if let Some(border) = border {
let width_value = specified::BorderWidth::from_length(specified::Length::from_px(border as f32));
hints.push(from_declaration(
PropertyDeclaration::BorderTopWidth(width_value.clone())));
PropertyDeclaration::BorderTopWidth(Box::new(width_value.clone()))));
hints.push(from_declaration(
PropertyDeclaration::BorderLeftWidth(width_value.clone())));
PropertyDeclaration::BorderLeftWidth(Box::new(width_value.clone()))));
hints.push(from_declaration(
PropertyDeclaration::BorderBottomWidth(width_value.clone())));
PropertyDeclaration::BorderBottomWidth(Box::new(width_value.clone()))));
hints.push(from_declaration(
PropertyDeclaration::BorderRightWidth(width_value)));
PropertyDeclaration::BorderRightWidth(Box::new(width_value))));
}
}