mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use i32 instead of isize in Au methods.
This commit is contained in:
parent
8b522f2e7d
commit
b1ecba9f3d
6 changed files with 23 additions and 23 deletions
|
@ -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)))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue