[librsvg: 13/18] text.rs: Use a mutable DrawingCtx only in Text::draw()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 13/18] text.rs: Use a mutable DrawingCtx only in Text::draw()
- Date: Tue, 26 Oct 2021 02:33:05 +0000 (UTC)
commit f5184354022666cc576f2fb3e01b0394ad47ec4b
Author: Federico Mena Quintero <federico gnome org>
Date: Mon Oct 25 19:58:06 2021 -0500
text.rs: Use a mutable DrawingCtx only in Text::draw()
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/621>
src/text.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/text.rs b/src/text.rs
index a9bd9d70..84fa2d85 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -424,7 +424,7 @@ impl PositionedSpan {
fn layout(
&self,
acquired_nodes: &mut AcquiredNodes<'_>,
- draw_ctx: &mut DrawingCtx,
+ draw_ctx: &DrawingCtx,
view_params: &ViewParams,
) -> LayoutSpan {
let params = NormalizeParams::new(&self.values, view_params);
@@ -484,7 +484,7 @@ fn children_to_chunks(
node: &Node,
acquired_nodes: &mut AcquiredNodes<'_>,
cascaded: &CascadedValues<'_>,
- draw_ctx: &mut DrawingCtx,
+ draw_ctx: &DrawingCtx,
dx: f64,
dy: f64,
depth: usize,
@@ -683,7 +683,7 @@ impl Text {
node: &Node,
acquired_nodes: &mut AcquiredNodes<'_>,
cascaded: &CascadedValues<'_>,
- draw_ctx: &mut DrawingCtx,
+ draw_ctx: &DrawingCtx,
x: f64,
y: f64,
) -> Vec<Chunk> {
@@ -923,7 +923,7 @@ impl TSpan {
node: &Node,
acquired_nodes: &mut AcquiredNodes<'_>,
cascaded: &CascadedValues<'_>,
- draw_ctx: &mut DrawingCtx,
+ draw_ctx: &DrawingCtx,
chunks: &mut Vec<Chunk>,
dx: f64,
dy: f64,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]