[librsvg/librsvg-2.50] Rename argument
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.50] Rename argument
- Date: Fri, 2 Oct 2020 19:24:36 +0000 (UTC)
commit e41bc137f66d3872d3d94803709fa1552213ceac
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Sep 21 17:30:55 2020 -0500
Rename argument
rsvg_internals/src/drawing_ctx.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index e4c77d72..464cfacb 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -147,7 +147,7 @@ pub struct DrawingCtx {
impl DrawingCtx {
pub fn new(
- node: Option<&Node>,
+ limit_to_stack: Option<&Node>,
cr: &cairo::Context,
viewport: Rect,
dpi: Dpi,
@@ -195,8 +195,8 @@ impl DrawingCtx {
testing,
};
- if let Some(node) = node {
- for n in node.ancestors() {
+ if let Some(limit_to_stack) = limit_to_stack {
+ for n in limit_to_stack.ancestors() {
draw_ctx.drawsub_stack.push(n.clone());
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]