StThemeNode: support border-image: none

Treat border-image: none as a valid specification that overwrites any
previously specified border image.

https://bugzilla.gnome.org/show_bug.cgi?id=644788
This commit is contained in:
Owen W. Taylor 2011-03-20 20:49:40 -04:00
parent 70ae700461
commit adbc1d97a0

View File

@ -2518,6 +2518,15 @@ st_theme_node_get_border_image (StThemeNode *node)
char *filename;
/* Support border-image: none; to suppress a previously specified border image */
if (term_is_none (term))
{
if (term->next == NULL)
return NULL;
else
goto next_property;
}
/* First term must be the URL to the image */
if (term->type != TERM_URI)
goto next_property;