[cairo-commit] cairo/src cairo-svg-surface.c,1.5,1.6

Emmanuel Pacaud commit at pdx.freedesktop.org
Wed Dec 28 02:28:59 PST 2005


Committed by: emmanuel

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv29241/src

Modified Files:
	cairo-svg-surface.c 
Log Message:
2005-12-28  Emmanuel Pacaud <emmanuel.pacaud at free.fr>

	* _cairo_svg_document_create: namespace declarations for SVG and XLINK
	(#5411).



Index: cairo-svg-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-svg-surface.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cairo-svg-surface.c	21 Dec 2005 15:25:01 -0000	1.5
+++ cairo-svg-surface.c	28 Dec 2005 10:28:57 -0000	1.6
@@ -223,7 +223,7 @@
 
 static cairo_surface_t *
 _cairo_svg_surface_create_similar (void			*abstract_src,
-				   cairo_format_t	format,
+				   cairo_content_t	content,
 				   int			width,
 				   int			height)
 {
@@ -1428,6 +1428,9 @@
     xmlSetProp (node, CC2XML ("width"), CC2XML (buffer));
     _cairo_dtostr (buffer, sizeof buffer, height);
     xmlSetProp (node, CC2XML ("height"), CC2XML (buffer));
+    xmlSetProp (node, CC2XML ("xmlns"), CC2XML ("http://www.w3.org/2000/svg"));
+    xmlSetProp (node, CC2XML ("xmlns:xlink"), CC2XML ("http://www.w3.org/1999/xlink"));
+    xmlSetProp (node, CC2XML ("version"), CC2XML ("1.1"));
 
     return document;
 }



More information about the cairo-commit mailing list