Foreign drawing & animations
@muktupavels
Submitted by Alberts Muktupāvels Link to original bug (#780991)
Description
I am interested in foreign drawing with animations. I looked at GtkStyleContext documentation and found gtk_style_context_set_frame_clock function that seemed like something I need to get animations...
Checking master and gtk-3-22 branches I found that *_context_set_frame_clock is used in gtkwidget.c, but frame_clock itself is never used in GtkStyleContext. Also gtk+ does not use gtk_style_context_get_frame_clock nor paint-clock
property. If I am not wrong then gtk_style_context_set_frame_clock from gtkwidget.c can be removed.
Looking further found This should get rid of animations
comment in gtkcsspathnode.c. This node is used when gtk_style_context_new API is used. That comment was added in 6dd19306 commit, but unfortunately it does not tell why both nodes should never create animated style...
Is it possible to change / update gtkcsspathnode.c to create animated style if frame_clock is set for GtkStyleContext?
Would GdkFrameClock + GtkStyleContext be enough to use css animations?