Backport size allocation optimization from master to 3.22
@jpu
Submitted by Juan Pablo Ugarte Link to original bug (#791281)
Description
Created attachment 365056 Test case
Gtk 3.22 queue a size allocation if you change the text color with css which make things a lot slower (see test case)
This issue if fixed in master by commit https://git.gnome.org/browse/gtk+/commit/?id=9bc7581f1c0
Attachment 365056, "Test case":
size_allocation_test.c
Version: 3.22.x