diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-05-05 18:40:00 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-05-05 18:40:00 +0200 |
commit | b1ecba9f3d30e2fe832f216f1453ada0750140c7 (patch) | |
tree | d8574ac9e0f11c3cda76baec7ad89e7fc2ca0c7d /components/style/legacy.rs | |
parent | 8b522f2e7d08aaf73429207cbbfd9da915f6d9a5 (diff) | |
download | servo-b1ecba9f3d30e2fe832f216f1453ada0750140c7.tar.gz servo-b1ecba9f3d30e2fe832f216f1453ada0750140c7.zip |
Use i32 instead of isize in Au methods.
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))))); |