[librsvg] with_discrete_layer(): Rename clip_uri variable
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] with_discrete_layer(): Rename clip_uri variable
- Date: Wed, 20 Jun 2018 00:15:46 +0000 (UTC)
commit 4e243cc78494eb83b01402de49e9d7935537d5fb
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jun 19 17:27:42 2018 -0500
with_discrete_layer(): Rename clip_uri variable
rsvg_internals/src/drawing_ctx.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index 6bc624f1..495bb732 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -215,7 +215,7 @@ pub fn with_discrete_layer(
let original_cr = get_cairo_context(draw_ctx);
original_cr.save();
- let clip_path = match values.clip_path {
+ let clip_uri = match values.clip_path {
ClipPath(IRI::Resource(ref p)) => Some(p),
_ => None,
};
@@ -239,7 +239,7 @@ pub fn with_discrete_layer(
let current_affine = original_cr.get_matrix();
if let Some(acquired) =
- get_acquired_node_of_type(draw_ctx, clip_path.map(String::as_ref), NodeType::ClipPath)
+ get_acquired_node_of_type(draw_ctx, clip_uri.map(String::as_ref), NodeType::ClipPath)
{
let node = acquired.get();
@@ -293,7 +293,7 @@ pub fn with_discrete_layer(
draw_fn(&get_cairo_context(draw_ctx));
if let Some(acquired) =
- get_acquired_node_of_type(draw_ctx, clip_path.map(String::as_ref), NodeType::ClipPath)
+ get_acquired_node_of_type(draw_ctx, clip_uri.map(String::as_ref), NodeType::ClipPath)
{
let mut clip_path_units = ClipPathUnits::default();
@@ -375,7 +375,7 @@ pub fn with_discrete_layer(
if late_clip {
if let Some(acquired) = get_acquired_node_of_type(
draw_ctx,
- clip_path.map(String::as_ref),
+ clip_uri.map(String::as_ref),
NodeType::ClipPath,
) {
let node = acquired.get();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]