css: Split styles into groups
authorMatthias Clasen <mclasen@redhat.com>
Sun, 26 Jan 2020 04:16:06 +0000 (23:16 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Jan 2020 10:07:32 +0000 (11:07 +0100)
commit5776d0dd992e8a68a06164b9a96f5aceca483fd1
treebb26df084d041b5929e69c3a323378a32fd74a88
parent59994bdd2259a59ece2e4e0b1e5f47832b40997b
css: Split styles into groups

Introduce refcounted structs for groups of related css properties,
and use them to store the style values. Both GtkCssStaticStyle and
GtkCssAnimatedStyle fill in the structs in GtkCssStyle, and we
can avoid vfuncs for value access, which should be much faster.
We can even start accessing style->core->color directly.
gtk/gtkcssanimatedstyle.c
gtk/gtkcssanimatedstyleprivate.h
gtk/gtkcsslookup.c
gtk/gtkcsslookupprivate.h
gtk/gtkcssstaticstyle.c
gtk/gtkcssstaticstyleprivate.h
gtk/gtkcssstyle.c
gtk/gtkcssstyleprivate.h