diff options
Diffstat (limited to 'components/style/legacy.rs')
-rw-r--r-- | components/style/legacy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/legacy.rs b/components/style/legacy.rs index f3a66f5138a..1b3cac694c0 100644 --- a/components/style/legacy.rs +++ b/components/style/legacy.rs @@ -126,7 +126,7 @@ impl PresentationalHintSynthesis for Stylist { UnsignedIntegerAttribute::CellSpacing) { None => {} Some(length) => { - let width_value = specified::Length::Absolute(Au::from_px(length as isize)); + let width_value = specified::Length::Absolute(Au::from_px(length as i32)); matching_rules_list.push(from_declaration( PropertyDeclaration::BorderSpacing( SpecifiedValue( @@ -204,7 +204,7 @@ impl PresentationalHintSynthesis for Stylist { match element.get_unsigned_integer_attribute(UnsignedIntegerAttribute::Border) { None => {} Some(length) => { - let width_value = specified::Length::Absolute(Au::from_px(length as isize)); + let width_value = specified::Length::Absolute(Au::from_px(length as i32)); matching_rules_list.push(from_declaration( PropertyDeclaration::BorderTopWidth(SpecifiedValue( longhands::border_top_width::SpecifiedValue(width_value))))); |