mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
layout: Fix servo build.
This commit is contained in:
parent
ac01c76e5e
commit
70635e7815
2 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ fn side_image_width(
|
||||||
total_length: Au,
|
total_length: Au,
|
||||||
) -> f32 {
|
) -> f32 {
|
||||||
match border_image_width {
|
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::Number(x) => border_width * x.0,
|
||||||
BorderImageSideWidth::Auto => border_width,
|
BorderImageSideWidth::Auto => border_width,
|
||||||
}
|
}
|
||||||
|
|
|
@ -2793,7 +2793,7 @@ impl Fragment {
|
||||||
let mut overflow = Overflow::from_rect(&border_box);
|
let mut overflow = Overflow::from_rect(&border_box);
|
||||||
|
|
||||||
// Box shadows cause us to draw outside our 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(
|
let offset = Vector2D::new(
|
||||||
Au::from(box_shadow.base.horizontal),
|
Au::from(box_shadow.base.horizontal),
|
||||||
Au::from(box_shadow.base.vertical),
|
Au::from(box_shadow.base.vertical),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue