aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-01-16 20:22:43 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-01-17 08:09:54 -0800
commitf59557d2f274f14bb26121233bbb3d6b86b10712 (patch)
tree16cfd6675c91c308e72ee240410d40a05bd19be5 /components/script/dom/element.rs
parent363f590019e495fffab0cc0fa0464e05d2fc96e8 (diff)
downloadservo-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.rs8
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))));
}