[librsvg: 13/95] rsvg_state_reinherit() - Rename to state_reinherit(); make it a static function



commit ca3c8f015b402b77549a7f926fa282b0ef752a8b
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Feb 12 12:52:13 2018 -0600

    rsvg_state_reinherit() - Rename to state_reinherit(); make it a static function

 rsvg-styles.c | 8 ++++----
 rsvg-styles.h | 2 --
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index 7976dc48..a16c789e 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -457,8 +457,8 @@ reinheritfunction (int dst, int src)
     return 0;
 }
 
-void
-rsvg_state_reinherit (RsvgState * dst, const RsvgState * src)
+static void
+state_reinherit (RsvgState * dst, const RsvgState * src)
 {
     rsvg_state_inherit_run (dst, src, reinheritfunction, 0);
 }
@@ -1763,7 +1763,7 @@ rsvg_state_push (RsvgDrawingCtx * ctx)
     data = rsvg_state_new ();
 
     if (baseon) {
-        rsvg_state_reinherit (data, baseon);
+        state_reinherit (data, baseon);
         data->affine = baseon->affine;
         data->parent = baseon;
     }
@@ -1815,7 +1815,7 @@ rsvg_state_reinherit_top (RsvgDrawingCtx * ctx, RsvgState * state, int dominate)
             if (dominate)
                 state_dominate (current, parent);
             else
-                rsvg_state_reinherit (current, parent);
+                state_reinherit (current, parent);
             cairo_matrix_multiply (&current->affine,
                                    &current->affine,
                                    &parent->affine);
diff --git a/rsvg-styles.h b/rsvg-styles.h
index 03e7a737..d1ff3e29 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -199,8 +199,6 @@ G_GNUC_INTERNAL
 void rsvg_state_reinit      (RsvgState * state);
 G_GNUC_INTERNAL
 void rsvg_state_clone       (RsvgState * dst, const RsvgState * src);
-G_GNUC_INTERNAL
-void rsvg_state_reinherit   (RsvgState * dst, const RsvgState * src);
 
 G_GNUC_INTERNAL
 void rsvg_state_free_all    (RsvgState * state);


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