[librsvg: 7/45] Rename PaintSource's associated type Source to Resolved
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 7/45] Rename PaintSource's associated type Source to Resolved
- Date: Tue, 1 Oct 2019 15:07:31 +0000 (UTC)
commit 2c4ddaf4912491ee313e51e3f5b114571b63fd15
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Sep 26 17:52:38 2019 -0500
Rename PaintSource's associated type Source to Resolved
rsvg_internals/src/gradient.rs | 6 +++---
rsvg_internals/src/paint_server.rs | 6 +++---
rsvg_internals/src/pattern.rs | 6 +++---
3 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/rsvg_internals/src/gradient.rs b/rsvg_internals/src/gradient.rs
index 18ab20e2..9edfd8da 100644
--- a/rsvg_internals/src/gradient.rs
+++ b/rsvg_internals/src/gradient.rs
@@ -558,14 +558,14 @@ macro_rules! impl_resolve {
macro_rules! impl_paint_source {
($gradient:ty, $node_type:pat, $other_gradient:ty, $other_type:pat) => {
impl PaintSource for $gradient {
- type Source = $gradient;
+ type Resolved = $gradient;
fn resolve(
&self,
node: &RsvgNode,
draw_ctx: &mut DrawingCtx,
bbox: &BoundingBox,
- ) -> Result<Option<Self::Source>, RenderingError> {
+ ) -> Result<Option<Self::Resolved>, RenderingError> {
let mut result = self.clone();
result.common.add_color_stops_from_node(node);
@@ -616,7 +616,7 @@ macro_rules! impl_paint_source {
fn set_pattern_on_draw_context(
&self,
- gradient: Self::Source,
+ gradient: Self::Resolved,
values: &ComputedValues,
draw_ctx: &mut DrawingCtx,
opacity: &UnitInterval,
diff --git a/rsvg_internals/src/paint_server.rs b/rsvg_internals/src/paint_server.rs
index f65b3369..9e3601fb 100644
--- a/rsvg_internals/src/paint_server.rs
+++ b/rsvg_internals/src/paint_server.rs
@@ -55,18 +55,18 @@ impl Parse for PaintServer {
}
pub trait PaintSource {
- type Source;
+ type Resolved;
fn resolve(
&self,
node: &RsvgNode,
draw_ctx: &mut DrawingCtx,
bbox: &BoundingBox,
- ) -> Result<Option<Self::Source>, RenderingError>;
+ ) -> Result<Option<Self::Resolved>, RenderingError>;
fn set_pattern_on_draw_context(
&self,
- pattern: Self::Source,
+ pattern: Self::Resolved,
values: &ComputedValues,
draw_ctx: &mut DrawingCtx,
opacity: &UnitInterval,
diff --git a/rsvg_internals/src/pattern.rs b/rsvg_internals/src/pattern.rs
index 097bb255..df1a439f 100644
--- a/rsvg_internals/src/pattern.rs
+++ b/rsvg_internals/src/pattern.rs
@@ -138,14 +138,14 @@ impl Resolve for NodePattern {
}
impl PaintSource for NodePattern {
- type Source = NodePattern;
+ type Resolved = NodePattern;
fn resolve(
&self,
node: &RsvgNode,
draw_ctx: &mut DrawingCtx,
_bbox: &BoundingBox,
- ) -> Result<Option<Self::Source>, RenderingError> {
+ ) -> Result<Option<Self::Resolved>, RenderingError> {
*self.node.borrow_mut() = Some(node.downgrade());
let mut result = node.borrow().get_impl::<NodePattern>().clone();
@@ -181,7 +181,7 @@ impl PaintSource for NodePattern {
fn set_pattern_on_draw_context(
&self,
- pattern: Self::Source,
+ pattern: Self::Resolved,
values: &ComputedValues,
draw_ctx: &mut DrawingCtx,
_opacity: &UnitInterval,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]