aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/model.rs')
-rw-r--r--components/layout/model.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/model.rs b/components/layout/model.rs
index b4498ff3079..8b4da87cd45 100644
--- a/components/layout/model.rs
+++ b/components/layout/model.rs
@@ -434,8 +434,8 @@ impl ToGfxMatrix for ComputedMatrix {
self.m12 as f32,
self.m21 as f32,
self.m22 as f32,
- self.m31.to_au(containing_size.width).to_frac32_px(),
- self.m32.to_au(containing_size.height).to_frac32_px())
+ self.m31.to_au(containing_size.width).to_f32_px(),
+ self.m32.to_au(containing_size.height).to_f32_px())
}
}
@@ -446,7 +446,7 @@ trait ToAu {
impl ToAu for LengthAndPercentage {
#[inline]
fn to_au(&self, containing_size: Au) -> Au {
- self.length + Au::from_frac32_px(self.percentage * containing_size.to_frac32_px())
+ self.length + Au::from_f32_px(self.percentage * containing_size.to_f32_px())
}
}