theme-node: fix support for box-shadow: none

We currently don't parse "box-shadow: none", despite being valid CSS.
Fix it so that it uses the default shadow values.

https://bugzilla.gnome.org/show_bug.cgi?id=702782
This commit is contained in:
Cosimo Cecchi 2013-06-20 14:51:33 -07:00
parent 109b29aeb5
commit 0b219bf8cb

View File

@ -3056,6 +3056,10 @@ parse_shadow_property (StThemeNode *node,
*/
for (term = decl->value; term; term = term->next)
{
/* if we found "none", we're all set with the default values */
if (term_is_none (term))
return VALUE_FOUND;
if (term->type == TERM_NUMBER)
{
gdouble value;