[librsvg: 1/27] Don't push superfluous coordinate systems in ResolvedPattern.to_user_space
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 1/27] Don't push superfluous coordinate systems in ResolvedPattern.to_user_space
- Date: Mon, 10 May 2021 16:06:42 +0000 (UTC)
commit b34968ca6145b632de2fed00ab93ad77d1d61f5c
Author: Federico Mena Quintero <federico gnome org>
Date: Fri May 7 17:25:07 2021 -0500
Don't push superfluous coordinate systems in ResolvedPattern.to_user_space
This is a leftover from when patterns were normalized and set in the
same code path.
src/pattern.rs | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/src/pattern.rs b/src/pattern.rs
index c9273ec9..026d4aed 100644
--- a/src/pattern.rs
+++ b/src/pattern.rs
@@ -368,14 +368,10 @@ impl ResolvedPattern {
let x = r.x0 - vbox.x0 * sw;
let y = r.y0 - vbox.y0 * sh;
- let _params = draw_ctx.push_view_box(vbox.width(), vbox.height());
-
Transform::new_scale(sw, sh).pre_translate(x, y)
} else {
let PatternContentUnits(content_units) = self.content_units;
- let _params = draw_ctx.push_coord_units(content_units);
-
match content_units {
CoordUnits::ObjectBoundingBox => {
Transform::new_scale(bbrect.width(), bbrect.height())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]