summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Pacaud <emmanuel.pacaud@free.fr>2005-12-28 02:28:56 +0000
committerEmmanuel Pacaud <emmanuel.pacaud@free.fr>2005-12-28 02:28:56 +0000
commitf7236b84603c45d9c67cc5dfed6305a8a1241f6c (patch)
tree108e7143bbb3d517484012f6f372817f92df3f2d
parent78d892d70eb28a92f3300727ecc753cd564a5fe7 (diff)
namespace declarations for SVG and XLINK (#5411).
-rw-r--r--ChangeLog5
-rw-r--r--src/cairo-svg-surface.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 37c5e238..28ca7da1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-28 Emmanuel Pacaud <emmanuel.pacaud@free.fr>
+
+ * _cairo_svg_document_create: namespace declarations for SVG and XLINK
+ (#5411).
+
2005-12-27 Christian Biesinger <cbiesinger@web.de>
* test/mask-beos-rgb24-ref.png:
diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c
index 4784524d..30f78019 100644
--- a/src/cairo-svg-surface.c
+++ b/src/cairo-svg-surface.c
@@ -223,7 +223,7 @@ _cairo_svg_surface_create_for_document (cairo_svg_document_t *document,
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 @@ _cairo_svg_document_create (cairo_output_stream_t *output_stream,
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;
}