mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Further changes required by Servo
This commit is contained in:
parent
3da0e44d98
commit
1ad176f1bc
1 changed files with 1 additions and 3 deletions
|
@ -971,9 +971,7 @@ impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element> {
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(border) = border {
|
if let Some(border) = border {
|
||||||
let width_value = specified::BorderSideWidth::Length(NonNegative(
|
let width_value = specified::BorderSideWidth::from_px(border as f32);
|
||||||
specified::Length::from_px(border as f32),
|
|
||||||
));
|
|
||||||
hints.push(from_declaration(
|
hints.push(from_declaration(
|
||||||
shared_lock,
|
shared_lock,
|
||||||
PropertyDeclaration::BorderTopWidth(width_value.clone()),
|
PropertyDeclaration::BorderTopWidth(width_value.clone()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue