[librsvg/librsvg-2.40: 2/10] Add a counter for the number of referenced elements



commit 02c9f2b78a13d666656b211feb6b450af8194e85
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Feb 26 10:55:41 2020 -0600

    Add a counter for the number of referenced elements

 rsvg-cairo-render.c | 1 +
 rsvg-private.h      | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/rsvg-cairo-render.c b/rsvg-cairo-render.c
index 19ba5327..b8f332aa 100644
--- a/rsvg-cairo-render.c
+++ b/rsvg-cairo-render.c
@@ -174,6 +174,7 @@ rsvg_cairo_new_drawing_ctx (cairo_t * cr, RsvgHandle * handle)
     draw->dpi_y = handle->priv->dpi_y;
     draw->vb.rect.width = data.em;
     draw->vb.rect.height = data.ex;
+    draw->num_elements_acquired = 0;
     draw->pango_context = NULL;
     draw->drawsub_stack = NULL;
     draw->acquired_nodes = NULL;
diff --git a/rsvg-private.h b/rsvg-private.h
index cfb4837c..7d0188b0 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -203,6 +203,7 @@ struct RsvgDrawingCtx {
     RsvgState *state;
     GError **error;
     RsvgDefs *defs;
+    gsize num_elements_acquired;
     PangoContext *pango_context;
     double dpi_x, dpi_y;
     RsvgViewBox vb;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]