diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-16 20:22:43 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2017-01-17 08:09:54 -0800 |
commit | f59557d2f274f14bb26121233bbb3d6b86b10712 (patch) | |
tree | 16cfd6675c91c308e72ee240410d40a05bd19be5 /components/script/dom/element.rs | |
parent | 363f590019e495fffab0cc0fa0464e05d2fc96e8 (diff) | |
download | servo-f59557d2f274f14bb26121233bbb3d6b86b10712.tar.gz servo-f59557d2f274f14bb26121233bbb3d6b86b10712.zip |
Box CalcLengthOrPercentage to reduce inline size of PropertyDeclaration(s)
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index bd3925c04f9..eb77b40b74c 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -480,7 +480,7 @@ impl LayoutElementHelpers for LayoutJS<Element> { hints.push(from_declaration( PropertyDeclaration::BorderSpacing(DeclaredValue::Value( border_spacing::SpecifiedValue { - horizontal: width_value, + horizontal: width_value.clone(), vertical: width_value, })))); } @@ -625,11 +625,11 @@ impl LayoutElementHelpers for LayoutJS<Element> { let width_value = specified::BorderWidth::from_length( specified::Length::Absolute(Au::from_px(border as i32))); hints.push(from_declaration( - PropertyDeclaration::BorderTopWidth(DeclaredValue::Value(width_value)))); + PropertyDeclaration::BorderTopWidth(DeclaredValue::Value(width_value.clone())))); hints.push(from_declaration( - PropertyDeclaration::BorderLeftWidth(DeclaredValue::Value(width_value)))); + PropertyDeclaration::BorderLeftWidth(DeclaredValue::Value(width_value.clone())))); hints.push(from_declaration( - PropertyDeclaration::BorderBottomWidth(DeclaredValue::Value(width_value)))); + PropertyDeclaration::BorderBottomWidth(DeclaredValue::Value(width_value.clone())))); hints.push(from_declaration( PropertyDeclaration::BorderRightWidth(DeclaredValue::Value(width_value)))); } |