[librsvg: 22/45] NodeGradient::resolve(): Rename temporary variables
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 22/45] NodeGradient::resolve(): Rename temporary variables
- Date: Tue, 1 Oct 2019 15:08:47 +0000 (UTC)
commit f0308ab72abd19a9ea5a8c619961dbed16be500e
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Sep 27 15:48:57 2019 -0500
NodeGradient::resolve(): Rename temporary variables
rsvg_internals/src/gradient.rs | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/rsvg_internals/src/gradient.rs b/rsvg_internals/src/gradient.rs
index 401e8b7c..d294f81d 100644
--- a/rsvg_internals/src/gradient.rs
+++ b/rsvg_internals/src/gradient.rs
@@ -702,22 +702,22 @@ impl PaintSource for NodeGradient {
while !result.is_resolved() {
if let Some(acquired) = acquire_gradient(draw_ctx, fallback.as_ref()) {
- let a_node = acquired.get();
+ let acquired_node = acquired.get();
- if stack.contains(a_node) {
+ if stack.contains(acquired_node) {
rsvg_log!("circular reference in gradient {}", node);
return Err(RenderingError::CircularReference);
}
- let (a_gradient, next_fallback) = a_node
- .borrow()
- .get_impl::<NodeGradient>()
- .get_unresolved(a_node);
+ let borrowed_node = acquired_node.borrow();
+ let a_gradient = borrowed_node.get_impl::<NodeGradient>();
- result.resolve_from_fallback(&a_gradient);
+ let (unresolved, next_fallback) = a_gradient.get_unresolved(&acquired_node);
+
+ result.resolve_from_fallback(&unresolved);
fallback = next_fallback;
- stack.push(a_node);
+ stack.push(acquired_node);
} else {
result.resolve_from_defaults();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]