
get_size() in _syncAnimationSize() can't be called until the actor has a parent, otherwise we'll get an error for calling st_get_theme_node() prior to the actor being on a stage. _syncAnimationSize() is called asynchronously via textureCache.load_sliced_image() and there is currently no guarantee the actor will actually be "loaded" prior to calling it. This becomes a more obvious error/issue when refactoring parts of the Shell loading to also be asynchronous. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2563>