Cosimo Cecchi d53bd98532 StWidget: don't forget to invalidate the paint state if not on stage
If the actor is not on the stage yet (i.e. does not have a theme
node), but has a paint state cached, we currently fail to invalidate
it, which will lead to the actor painting with old contents once it
gets onto the stage.

This commit fixes the issue by changing our invalidation strategy;
previously we were looking at the widget's own theme node to determine
if it should be invalidated or not.
Now we look at the theme nodes of our cached paint states. When the
widget is mapped on stage, those are the same as the widget's own
theme node, but when the widget is not on the stage, we'll still be
able to invalidate them.

As part of this, we move the invalidation API to StThemeNodePaintState,
which is a more natural place for our use case.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/314

(cherry picked from commit 6743c18fdfa6dc48fb7d920640debe863018dd38)
2019-01-11 11:30:26 +00:00
..
2014-01-09 14:59:31 -05:00
2014-01-09 14:59:31 -05:00
2014-01-09 14:59:31 -05:00
2018-02-05 17:46:57 +01:00
2018-01-12 11:48:49 +01:00
2015-10-15 22:59:49 +02:00
2018-01-12 11:48:49 +01:00
2018-01-12 11:48:49 +01:00
2017-07-14 23:38:52 +02:00
2017-08-02 11:27:42 +01:00
2015-10-15 22:58:28 +02:00