summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/gtkhtml2/files/fix-background-none.patch
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/packages/gtkhtml2/files/fix-background-none.patch')
-rw-r--r--openembedded/packages/gtkhtml2/files/fix-background-none.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/openembedded/packages/gtkhtml2/files/fix-background-none.patch b/openembedded/packages/gtkhtml2/files/fix-background-none.patch
deleted file mode 100644
index 076f312009..0000000000
--- a/openembedded/packages/gtkhtml2/files/fix-background-none.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1Index: gtkhtml2/libgtkhtml/css/cssmatcher.c
2===================================================================
3--- gtkhtml2.orig/libgtkhtml/css/cssmatcher.c 2006-01-21 01:02:23.000000000 +0000
4+++ gtkhtml2/libgtkhtml/css/cssmatcher.c 2006-01-25 02:07:44.000000000 +0000
5@@ -596,7 +596,13 @@
6 g_object_unref (G_OBJECT(image));
7 return TRUE;
8 }
9- }
10+ } else if (val->value_type == CSS_IDENT &&
11+ val->v.atom == HTML_ATOM_NONE) {
12+ if (style->background->image) {
13+ g_object_unref (style->background->image);
14+ style->background->image = NULL;
15+ }
16+ }
17 return FALSE;
18 }
19
20@@ -1256,7 +1262,10 @@
21 }
22 else if (val->value_type == CSS_FUNCTION)
23 handle_background_image (document, style, val);
24- else if (css_parse_color (val, &color))
25+ else if (val->value_type == CSS_IDENT && val->v.atom == HTML_ATOM_NONE) {
26+ handle_background_image (document, style, val);
27+ style->background->color.transparent = TRUE;
28+ } else if (css_parse_color (val, &color))
29 html_style_set_background_color (style, &color);
30
31 break;
32@@ -1273,6 +1282,8 @@
33
34 if (val->v.atom == HTML_ATOM_INHERIT)
35 html_style_set_background_color (style, &parent_style->background->color);
36+ else if (val->v.atom == HTML_ATOM_NONE)
37+ style->background->color.transparent = TRUE;
38 else if (css_parse_color (val, &color))
39 html_style_set_background_color (style, &color);
40 break;