mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Box more specified values to bring SpecifiedValue/PropertyDeclaration sizes down to 24/32 bytes.
MozReview-Commit-ID: xstAfjVQqi
This commit is contained in:
parent
8f3f8098c3
commit
97dd3a1b08
12 changed files with 58 additions and 50 deletions
|
@ -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))));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue