summaryrefslogtreecommitdiff
path: root/openembedded/packages/gtkhtml2/files/fix-background-none.patch
diff options
context:
space:
mode:
authorChris Lord <chris@openedhand.com>2006-02-01 09:52:55 +0000
committerChris Lord <chris@openedhand.com>2006-02-01 09:52:55 +0000
commitda8ed2882801ca513eef5b696de14ea99c485354 (patch)
treead43f2132fd8896e1c2c4aefe75ad572273d469a /openembedded/packages/gtkhtml2/files/fix-background-none.patch
parent27700c91dd31d47332e6533241982d856772e08b (diff)
downloadopenembedded-core-da8ed2882801ca513eef5b696de14ea99c485354.tar.gz
openembedded-core-da8ed2882801ca513eef5b696de14ea99c485354.tar.bz2
openembedded-core-da8ed2882801ca513eef5b696de14ea99c485354.tar.xz
openembedded-core-da8ed2882801ca513eef5b696de14ea99c485354.zip
Add libsoup, libspidermonkey, libxml2 cvs, patched gtkhtml2 and web
packages git-svn-id: https://svn.o-hand.com/repos/poky@245 311d38ba-8fff-0310-9ca6-ca027cbcb966
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, 40 insertions, 0 deletions
diff --git a/openembedded/packages/gtkhtml2/files/fix-background-none.patch b/openembedded/packages/gtkhtml2/files/fix-background-none.patch
new file mode 100644
index 000000000..076f31200
--- /dev/null
+++ b/openembedded/packages/gtkhtml2/files/fix-background-none.patch
@@ -0,0 +1,40 @@
+Index: gtkhtml2/libgtkhtml/css/cssmatcher.c
+===================================================================
+--- gtkhtml2.orig/libgtkhtml/css/cssmatcher.c 2006-01-21 01:02:23.000000000 +0000
++++ gtkhtml2/libgtkhtml/css/cssmatcher.c 2006-01-25 02:07:44.000000000 +0000
+@@ -596,7 +596,13 @@
+ g_object_unref (G_OBJECT(image));
+ return TRUE;
+ }
+- }
++ } else if (val->value_type == CSS_IDENT &&
++ val->v.atom == HTML_ATOM_NONE) {
++ if (style->background->image) {
++ g_object_unref (style->background->image);
++ style->background->image = NULL;
++ }
++ }
+ return FALSE;
+ }
+
+@@ -1256,7 +1262,10 @@
+ }
+ else if (val->value_type == CSS_FUNCTION)
+ handle_background_image (document, style, val);
+- else if (css_parse_color (val, &color))
++ else if (val->value_type == CSS_IDENT && val->v.atom == HTML_ATOM_NONE) {
++ handle_background_image (document, style, val);
++ style->background->color.transparent = TRUE;
++ } else if (css_parse_color (val, &color))
+ html_style_set_background_color (style, &color);
+
+ break;
+@@ -1273,6 +1282,8 @@
+
+ if (val->v.atom == HTML_ATOM_INHERIT)
+ html_style_set_background_color (style, &parent_style->background->color);
++ else if (val->v.atom == HTML_ATOM_NONE)
++ style->background->color.transparent = TRUE;
+ else if (css_parse_color (val, &color))
+ html_style_set_background_color (style, &color);
+ break;