stylecontext: Use a static style when saved

The only style that is animated is the style of the unsaved primary
node. So there's no need to create animated style objects for the other
ones.

There is a bunch of ugliness in the code currently. Further commits are
expected to fix them.
This commit is contained in:
Benjamin Otte
2014-10-26 19:38:38 +01:00
parent ac215ffc8f
commit c7e9489e3e
3 changed files with 37 additions and 19 deletions

View File

@ -20,7 +20,7 @@
#include <glib-object.h>
#include "gtk/gtkbitmaskprivate.h"
#include "gtk/gtkcssanimatedstyleprivate.h"
#include "gtk/gtkcssstyleprivate.h"
#include "gtk/gtkcsssection.h"
@ -51,7 +51,7 @@ void _gtk_css_lookup_set (GtkCssLookup
void _gtk_css_lookup_resolve (GtkCssLookup *lookup,
GtkStyleProviderPrivate *provider,
int scale,
GtkCssAnimatedStyle *style,
GtkCssStyle *style,
GtkCssStyle *parent_style);
static inline const GtkBitmask *