[librsvg: 26/27] Finally remove Length.normalize - only to_user() is used now.
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 26/27] Finally remove Length.normalize - only to_user() is used now.
- Date: Mon, 10 May 2021 16:06:43 +0000 (UTC)
commit 3786dcca61902209eb2bfce82aaf20aa7419d6b7
Author: Federico Mena Quintero <federico gnome org>
Date: Mon May 10 10:46:50 2021 -0500
Finally remove Length.normalize - only to_user() is used now.
Yay!
src/length.rs | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/src/length.rs b/src/length.rs
index 7ad88245..24677f3e 100644
--- a/src/length.rs
+++ b/src/length.rs
@@ -371,18 +371,6 @@ impl<N: Normalize, V: Validate> CssLength<N, V> {
}
}
- /// Normalizes a specified length into a used value.
- ///
- /// Lengths may come with non-pixel units, and when rendering, they need to be normalized
- /// to pixels based on the current viewport (e.g. for lengths with percent units), and
- /// based on the current element's set of `ComputedValues` (e.g. for lengths with `Em`
- /// units that need to be resolved against the current font size).
- ///
- /// Those parameters can be obtained with `NormalizeParams::new()`.
- pub fn normalize(&self, values: &ComputedValues, params: &ViewParams) -> f64 {
- self.to_user(&NormalizeParams::new(values, params))
- }
-
/// Convert a Length with units into user-space coordinates.
///
/// Lengths may come with non-pixel units, and when rendering, they need to be normalized
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]