aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-05-25 03:55:18 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-05-29 16:14:35 +0200
commit70635e78157208e74c3d09966f525dae84126154 (patch)
tree677bccbfad12d1ce599c0375b33d9a8341450540
parentac01c76e5e82d2a2ecbc06962658bf788d05976d (diff)
downloadservo-70635e78157208e74c3d09966f525dae84126154.tar.gz
servo-70635e78157208e74c3d09966f525dae84126154.zip
layout: Fix servo build.
-rw-r--r--components/layout/display_list/border.rs2
-rw-r--r--components/layout/fragment.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/display_list/border.rs b/components/layout/display_list/border.rs
index dcbef4473fe..848386cb630 100644
--- a/components/layout/display_list/border.rs
+++ b/components/layout/display_list/border.rs
@@ -159,7 +159,7 @@ fn side_image_width(
total_length: Au,
) -> f32 {
match border_image_width {
- BorderImageSideWidth::Length(v) => v.to_used_value(total_length).to_f32_px(),
+ BorderImageSideWidth::LengthPercentage(v) => v.to_used_value(total_length).to_f32_px(),
BorderImageSideWidth::Number(x) => border_width * x.0,
BorderImageSideWidth::Auto => border_width,
}
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index ccc3de5ec7e..d3e9dbb6779 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -2793,7 +2793,7 @@ impl Fragment {
let mut overflow = Overflow::from_rect(&border_box);
// Box shadows cause us to draw outside our border box.
- for box_shadow in &self.style().get_effects().box_shadow.0 {
+ for box_shadow in &*self.style().get_effects().box_shadow.0 {
let offset = Vector2D::new(
Au::from(box_shadow.base.horizontal),
Au::from(box_shadow.base.vertical),