mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix Servo build.
This commit is contained in:
parent
4c1076a9ac
commit
97bd8fc280
2 changed files with 9 additions and 6 deletions
|
@ -128,6 +128,7 @@ use style::selector_parser::{
|
|||
};
|
||||
use style::shared_lock::{Locked, SharedRwLock};
|
||||
use style::thread_state;
|
||||
use style::values::generics::NonNegative;
|
||||
use style::values::{computed, specified};
|
||||
use style::values::{CSSFloat, Either};
|
||||
use style::CaseSensitivityExt;
|
||||
|
@ -847,8 +848,9 @@ impl LayoutElementHelpers for LayoutDom<Element> {
|
|||
};
|
||||
|
||||
if let Some(border) = border {
|
||||
let width_value =
|
||||
specified::BorderSideWidth::Length(specified::Length::from_px(border as f32));
|
||||
let width_value = specified::BorderSideWidth::Length(NonNegative(
|
||||
specified::Length::from_px(border as f32),
|
||||
));
|
||||
hints.push(from_declaration(
|
||||
shared_lock,
|
||||
PropertyDeclaration::BorderTopWidth(width_value.clone()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue