]> Pileus Git - ~andy/gtk/commit
css: Move special case code for border widths
authorBenjamin Otte <otte@redhat.com>
Mon, 1 Oct 2012 16:21:30 +0000 (18:21 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 2 Oct 2012 12:16:35 +0000 (14:16 +0200)
commit25271fe781df135b72c9e95a6551d6f4017d9c1b
tree63ec12628ca1f01d8c070ed7749870b82a829665
parent83c66c9c2cf6bf411f7d5ae3c89259203626173a
css: Move special case code for border widths

We need to store the border widths independant of them being set to 0 by
border styles, because otherwise we'd need to track that dependency and
recompute on changes, and I don't want to add more entries to
GtkCssDependencies just for this special case.

By moving the code that does the setting to 0 from the compute stage to
the query stage, we can achieve this.

Now we need to just be aware that the actual value stored is not set to
0 when we use gtk_css_computed_values_get_value().
gtk/gtkcssnumbervalue.c
gtk/gtkcssstyleproperty.c