diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-04-15 13:42:50 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-04-15 14:00:00 +0200 |
commit | daba02438df4b3f1b0b03825e4b535f1cb1274a3 (patch) | |
tree | f8995b18007581cb6f592e854210e1d93e031b54 /components/script/dom | |
parent | 7ae9c96467b1a80f104aa5346c9fd11522490541 (diff) | |
download | servo-daba02438df4b3f1b0b03825e4b535f1cb1274a3.tar.gz servo-daba02438df4b3f1b0b03825e4b535f1cb1274a3.zip |
Upgrade to rustc 1.18.0-nightly (5f13a3b54 2017-04-15)
This version enables [struct field reordering][1] which brings the size
of the types for specified values of some CSS properties under the threshold
such that they shouldn’t be boxed anymore, making unit tests fail.
Simply unboxing them moves the test failure to Stylo’s unit tests,
since the stable compiler used in that case does not do field re-ordering.
Therefore, we manually reorder a couple fields to effectively bring this
optimization to older compilers for a few specific types.
[1]: https://github.com/rust-lang/rust/pull/40377
Diffstat (limited to 'components/script/dom')
-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 1bf8fe037f4..8baba9bb54d 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -649,16 +649,16 @@ impl LayoutElementHelpers for LayoutJS<Element> { let width_value = specified::BorderWidth::from_length(specified::Length::from_px(border as f32)); hints.push(from_declaration( shared_lock, - PropertyDeclaration::BorderTopWidth(Box::new(width_value.clone())))); + PropertyDeclaration::BorderTopWidth(width_value.clone()))); hints.push(from_declaration( shared_lock, - PropertyDeclaration::BorderLeftWidth(Box::new(width_value.clone())))); + PropertyDeclaration::BorderLeftWidth(width_value.clone()))); hints.push(from_declaration( shared_lock, - PropertyDeclaration::BorderBottomWidth(Box::new(width_value.clone())))); + PropertyDeclaration::BorderBottomWidth(width_value.clone()))); hints.push(from_declaration( shared_lock, - PropertyDeclaration::BorderRightWidth(Box::new(width_value)))); + PropertyDeclaration::BorderRightWidth(width_value))); } } |