[librsvg] support !important directive without libcroco.
- From: Hiroyuki Ikezoe <hiikezoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] support !important directive without libcroco.
- Date: Sat, 1 May 2010 00:01:38 +0000 (UTC)
commit b4af5af75a2d4b7391646f3a405d7bbd1e53d988
Author: Hiroyuki Ikezoe <hiikezoe gnome org>
Date: Sat May 1 09:01:12 2010 +0900
support !important directive without libcroco.
Fix for bug #617163.
rsvg-styles.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index c87cffd..fab671c 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -1174,11 +1174,15 @@ rsvg_real_parse_cssbuffer (RsvgHandle * ctx, const char *buff, size_t buflen)
gchar **values;
values = g_strsplit (styles[j], ":", 2);
if (g_strv_length (values) == 2) {
+ gchar *style_value = NULL;
+ gboolean important;
+ parse_style_value (g_strstrip (values[1]), &style_value, &important);
rsvg_css_define_style (ctx,
g_strstrip (selectors[i]),
g_strstrip (values[0]),
- g_strstrip (values[1]),
- FALSE);
+ g_strstrip (style_value),
+ important);
+ g_free (style_value);
}
g_strfreev (values);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]