Skip to content
Permalink
Browse files

layout: Fix servo build.

  • Loading branch information...
emilio committed May 25, 2019
1 parent ac01c76 commit 70635e78157208e74c3d09966f525dae84126154
Showing with 2 additions and 2 deletions.
  1. +1 −1 components/layout/display_list/border.rs
  2. +1 −1 components/layout/fragment.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,
}
@@ -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),

0 comments on commit 70635e7

Please sign in to comment.
You can’t perform that action at this time.