[librsvg: 2/20] Rename function
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/20] Rename function
- Date: Wed, 17 Mar 2021 19:08:05 +0000 (UTC)
commit c3cee1f025b3b672818eaf0c9ab773e4ce56f303
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Mar 16 10:37:22 2021 -0600
Rename function
src/filters/mod.rs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/filters/mod.rs b/src/filters/mod.rs
index 08007083..80da1280 100644
--- a/src/filters/mod.rs
+++ b/src/filters/mod.rs
@@ -145,10 +145,10 @@ impl Primitive {
fn get_bounds(&self, ctx: &FilterContext) -> Result<BoundsBuilder, FilterError> {
// With ObjectBoundingBox, only fractions and percents are allowed.
if ctx.primitive_units() == CoordUnits::ObjectBoundingBox {
- check_units(self.x)?;
- check_units(self.y)?;
- check_units(self.width)?;
- check_units(self.height)?;
+ check_px_or_percent_units(self.x)?;
+ check_px_or_percent_units(self.y)?;
+ check_px_or_percent_units(self.width)?;
+ check_px_or_percent_units(self.height)?;
}
let transform = ctx.paffine();
@@ -168,7 +168,7 @@ impl Primitive {
}
}
-fn check_units<N: Normalize, V: Validate>(
+fn check_px_or_percent_units<N: Normalize, V: Validate>(
length: Option<CssLength<N, V>>,
) -> Result<(), FilterError> {
match length {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]