GNOME Bugzilla – Bug 608914
Solid backgrounds may not be drawn
Last modified: 2010-02-03 20:10:23 UTC
When changing from a gradient to a solid background, the new background is only drawn if the background color changed as well.
Created attachment 152953 [details] [review] Pick up change from gradient to solid background On style changes from gradient to solid backgrounds, the new background must be drawn unconditionally, not depending on whether old and new background color differ.
Created attachment 152954 [details] [review] [CSS] Test case for solid/gradient background switching
Review of attachment 152953 [details] [review]: Looks good to me, it would be slightly cleaner to move: + priv->bg_gradient_type = gradient; nside the if, rather than just having that outside when it's pretty similar to the other stuff.
Review of attachment 152954 [details] [review]: Marking rejected to get it off of patch review queries, since I don't think it is meant to be committed. An even cooler thing to do for test cases is to extend tests/interactive and include that in the patch with the fix. (Not asking for that here, just a suggestion for the future.)
Attachment 152953 [details] pushed as 2b15f38 - Pick up change from gradient to solid background, with the minor modification as suggested by Owen.