commit 70f7dede593450dc2efcacbc9f536b8da66fe5f7 Author: Christian Persch <chpe@gnome.org> Date: Mon Feb 6 20:53:56 2012 +0100 tests: Use type attribute on <style> tests/fixtures/styles/bug614643.svg | 2 +- tests/fixtures/styles/bug614704.svg | 2 +- tests/fixtures/styles/order.svg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 20abafc41733870cf97cbec1fa5a8f44295f307c Author: Christian Persch <chpe@gnome.org> Date: Mon Feb 6 20:30:43 2012 +0100 Version 2.35.2 NEWS | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit a3c9aaa77fadd8a56aec314563a1357eac296d91 Author: Christian Persch <chpe@gnome.org> Date: Mon Jan 30 20:26:23 2012 +0100 Plug a mem leak Don't leak the GFile. ==2493== 46 (16 direct, 30 indirect) bytes in 1 blocks are definitely lost in loss record 579 of 921 ==2493== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==2493== by 0x45772DA: standard_malloc (gmem.c:85) ==2493== by 0x4577680: g_malloc (gmem.c:159) ==2493== by 0x458B29D: g_slice_alloc (gslice.c:1003) ==2493== by 0x458B805: g_slice_alloc0 (gslice.c:1029) ==2493== by 0x426DBA7: g_type_create_instance (gtype.c:1872) ==2493== by 0x4250717: g_object_constructor (gobject.c:1839) ==2493== by 0x4252488: g_object_newv (gobject.c:1622) ==2493== by 0x4252A17: g_object_new (gobject.c:1532) ==2493== by 0x4176D3A: _g_local_file_new (glocalfile.c:288) ==2493== by 0x417EA84: g_local_vfs_get_file_for_uri (glocalvfs.c:110) ==2493== by 0x410E8DB: g_vfs_get_file_for_uri (gvfs.c:130) ==2493== by 0x40C93DE: g_file_new_for_uri (gfile.c:5893) ==2493== by 0x403A59F: _rsvg_io_acquire_data (rsvg-io.c:265) rsvg-io.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 31316136a9a0c5157dc37c1c73be4691180e1bba Author: Christian Persch <chpe@gnome.org> Date: Sun Jan 29 19:16:54 2012 +0100 rsvg-view: Better error message test-display.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) commit a22a60d54517b83882d02e8c0e058a8cabaa47b9 Author: Christian Persch <chpe@gnome.org> Date: Sat Jan 28 18:32:21 2012 +0100 Use mime types instead of content types Instead of converting back and forth, just use the mime types directly. rsvg-base.c | 16 ++++++------ rsvg-image.c | 9 ++----- rsvg-io.c | 71 +++++++++++++++++++++++++++++++------------------------- rsvg-io.h | 4 +- rsvg-styles.c | 22 ++++++++--------- 5 files changed, 62 insertions(+), 60 deletions(-) commit 4af98a95c59d159bdb551a0cef949e7e7118055f Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 27 22:52:32 2012 +0100 Create type specific gdk-pixbuf loader When we know the mime type of the content, use gdk_pixbuf_loader_new_with_mime_type(). rsvg-image.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) commit 8ccf8d07dd3e279bf3ed8c4a8c44cd3320541de4 Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 27 22:45:22 2012 +0100 Only apply CSS if its content type is text/css rsvg-base.c | 13 +++++++++---- rsvg-styles.c | 15 ++++++++++++--- 2 files changed, 21 insertions(+), 7 deletions(-) commit cf1c41c94f50b20fff4a29fc4ca5fca2bee2a18b Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 27 22:22:22 2012 +0100 Obey the passed-in cancellable Add GCancellable argument to _rsvg_io_acquire_*, and pass the cancellable passed to rsvg_handle_read_stream_sync() down. rsvg-base-file-util.c | 2 +- rsvg-base.c | 32 ++++++++++++++++++++++++-------- rsvg-file-util.c | 2 +- rsvg-gobject.c | 3 +++ rsvg-io.c | 25 +++++++++++++++---------- rsvg-io.h | 2 ++ rsvg-private.h | 1 + 7 files changed, 47 insertions(+), 20 deletions(-) commit c72df0b0ab0cc5db48192535e9776efd6b46c51d Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 27 21:59:28 2012 +0100 Add content_type out param to _rsvg_io_acquire_* rsvg-base-file-util.c | 2 +- rsvg-base.c | 13 ++++-- rsvg-defs.c | 2 +- rsvg-file-util.c | 2 +- rsvg-image.c | 2 +- rsvg-io.c | 104 +++++++++++++++++++++++++++++++++++------------- rsvg-io.h | 2 + rsvg-private.h | 2 + rsvg-styles.c | 1 + 9 files changed, 94 insertions(+), 36 deletions(-) commit eb2b2c094fa4aa9dab43d443267b1b96983e8165 Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 27 21:09:31 2012 +0100 Improve decoding of data: URIs Support non-base64 data: URIs, and also get the content type out. Code adapted from libsoup. rsvg-io.c | 113 ++++++++++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 90 insertions(+), 23 deletions(-) commit ad697bfd6c72835c0fe88dd65d0512ea596f3c97 Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 27 20:44:57 2012 +0100 Don't do fallback for data: URIs When the scheme is "data", just treat it like that, and don't fall back to trying file or gvfs. Also make sure to always set the error! rsvg-io.c | 24 ++++++++++++++++-------- 1 files changed, 16 insertions(+), 8 deletions(-) commit ada09403736c41465fa23fea9ef09e9c837d1685 Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 27 15:35:52 2012 +0100 Don't overwrite GErrors rsvg-io.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit a2e869cb700c13804056820fd4afa215e551b9c5 Author: Christian Persch <chpe@gnome.org> Date: Thu Jan 26 21:17:31 2012 +0100 Add permission check before loading other files Wrap _rsvg_io_acquire_* in _rsvg_handle_acquire_* that first checks whether the load should be allowed. For the moment, always allow the load; more restricted policies will be introduced in a follow-up commit. rsvg-base.c | 69 +++++++++++++++++++++++++++++++++++++++++-------------- rsvg-defs.c | 16 ++++--------- rsvg-defs.h | 6 ++-- rsvg-filter.c | 4 +- rsvg-gobject.c | 3 +- rsvg-image.c | 10 ++++---- rsvg-image.h | 2 +- rsvg-io.h | 2 - rsvg-private.h | 19 +++++++++++++++ rsvg-styles.c | 9 +++---- 10 files changed, 92 insertions(+), 48 deletions(-) commit cd6700bb4852466bd1d700774c0fce4dde25c6e6 Author: Christian Persch <chpe@gnome.org> Date: Thu Jan 26 20:02:50 2012 +0100 Mark non-exported functions with G_GNUC_INTERNAL And regenerate librsvg.def. Makefile.am | 2 +- librsvg.def | 60 +++++++++++++++++++++++++------------------------- rsvg-base.c | 3 ++ rsvg-cairo-clip.h | 1 + rsvg-cairo-draw.h | 9 ++++++- rsvg-cairo-render.h | 3 ++ rsvg-css.h | 22 ++++++++++++++---- rsvg-defs.h | 9 +++++++ rsvg-filter.h | 23 ++++++++++++++++++- rsvg-image.h | 7 +++-- rsvg-io.h | 2 + rsvg-marker.h | 4 +++ rsvg-mask.h | 4 +++ rsvg-paint-server.h | 12 ++++++++++ rsvg-path.h | 12 ++++++--- rsvg-private.h | 43 ++++++++++++++++++++++++++---------- rsvg-shapes.h | 7 ++++++ rsvg-structure.h | 15 ++++++++++++- rsvg-styles.h | 23 +++++++++++++++++++ rsvg-text.c | 2 +- rsvg-text.h | 4 +++ 21 files changed, 208 insertions(+), 59 deletions(-) commit f31e5df57d2527b16beed3181e05ed44a7be2d4b Author: Christian Persch <chpe@gnome.org> Date: Thu Jan 26 19:45:46 2012 +0100 Remove _rsvg_register_types It was only used to work around bug 357406 and bug 362217 in the now-obsolete gtk2 engine. Just make that module resident instead, and use proper G_DEFINE_TYPE macro for RsvgHandle. gtk-engine/svg-main.c | 8 +++++- librsvg.def | 1 - rsvg-gobject.c | 58 ++++++++---------------------------------------- rsvg-private.h | 2 - 4 files changed, 16 insertions(+), 53 deletions(-) commit ac8d26c9c6b7f5f86fa8600f6daf4e5f356f3190 Author: Christian Persch <chpe@gnome.org> Date: Thu Jan 26 19:33:02 2012 +0100 Don't export private function _rsvg_size_callback Move it to its own file, and include that in rsvg-convert and the tests. Makefile.am | 10 ++++- librsvg.def | 1 - rsvg-convert.c | 1 + rsvg-file-util.c | 80 +------------------------------------- rsvg-private.h | 21 +---------- rsvg-size-callback.c | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++ rsvg-size-callback.h | 52 +++++++++++++++++++++++++ test-display.c | 1 + tests/Makefile.am | 4 +- tests/rsvg-test.c | 1 + 10 files changed, 172 insertions(+), 102 deletions(-) commit acaa6c6f3a3c2e6593e1c2262e7b8c86d747af57 Author: William Lachance <wrlach@gmail.com> Date: Mon Jan 16 17:40:58 2012 +0100 Fix the build https://bugzilla.gnome.org/show_bug.cgi?id=668030 Makefile.am | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit fd76212e2dc8e41b2c23d6e76c02cc7803da4a12 Author: Christian Persch <chpe@gnome.org> Date: Sat Jan 14 17:00:13 2012 +0100 Remove obsolete script https://bugzilla.gnome.org/show_bug.cgi?id=580325 Makefile.am | 1 - configure.in | 4 --- rsvg.in | 73 ---------------------------------------------------------- 3 files changed, 0 insertions(+), 78 deletions(-) commit 7624bfc042e0b359ad0f4c1821d8312243f84587 Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 13 01:37:16 2012 +0100 rsvg-view: Always initialise variable test-display.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 793684eedda01272dda744bfbbaaedd875b30711 Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 13 00:29:38 2012 +0100 Plug a mem leak ==25857== 64 bytes in 1 blocks are definitely lost in loss record 106 of 145 ==25857== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==25857== by 0x45CDD4A: standard_malloc (gmem.c:85) ==25857== by 0x45CE0F0: g_malloc (gmem.c:159) ==25857== by 0x45E38AA: g_strdup (gstrfuncs.c:356) ==25857== by 0x4039F7F: rsvg_get_file_path (rsvg-io.c:64) ==25857== by 0x4039FDF: rsvg_acquire_file_data (rsvg-io.c:98) rsvg-io.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) commit ebd0d1a02aeeb57c64d8e0daf5f37ff4a35f116b Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 13 00:17:12 2012 +0100 Fix an ABI compat problem rsvg_cairo_to_pixbuf was removed in commit 95c359713a51b02a5e6693fd741dff20d08be7ae, but it was exported. So let's add it back, to maintain ABI compatibility. https://bugzilla.gnome.org/show_bug.cgi?id=666868 rsvg-cairo-draw.c | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) commit f95c9c2a8c99a6d096029c1483ad8c9b37376a94 Author: Maarten Bosmans <mkbosmans@gmail.com> Date: Fri Jan 13 00:12:40 2012 +0100 rsvg-view: Make this a GUI app for Windows https://bugzilla.gnome.org/show_bug.cgi?id=666866 Makefile.am | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 1291ebc3a5cb8addfa97aa56365f15e2427beb22 Author: Christian Persch <chpe@gnome.org> Date: Thu Jan 12 22:13:02 2012 +0100 Split IO handling to rsvg-io.[ch] Add rsvg-io.[ch], move the code there, clean it up, and adapt the callers. Makefile.am | 2 + rsvg-base-file-util.c | 20 ++-- rsvg-base.c | 155 ++++++++++++++++++++-------------- rsvg-defs.c | 12 ++- rsvg-file-util.c | 28 ++++--- rsvg-image.c | 156 ++-------------------------------- rsvg-io.c | 225 +++++++++++++++++++++++++++++++++++++++++++++++++ rsvg-io.h | 38 ++++++++ rsvg-private.h | 3 - rsvg-styles.c | 33 ++++---- rsvg-styles.h | 1 - 11 files changed, 417 insertions(+), 256 deletions(-) commit 47920ba6e3106e9c50e93e5546f536590e791b19 Author: Christian Persch <chpe@gnome.org> Date: Fri Jan 13 00:04:48 2012 +0100 Don't parse CSS when the mime type isn't text/css https://bugzilla.gnome.org/show_bug.cgi?id=514268 rsvg-base.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) commit 80391e1019fa1a938aefef61eab27dca94bce2a2 Author: Christian Persch <chpe@gnome.org> Date: Thu Jan 12 23:26:39 2012 +0100 rsvg-view: Re-implement .svgz support test-display.c | 30 +++++++++++++++++++++++++++++- 1 files changed, 29 insertions(+), 1 deletions(-) commit 4f2c17460b1239ffd69dc5c2d9554112e620657f Author: Angus Gratton <angus.gratton@anu.edu.au> Date: Thu Jan 5 12:20:29 2012 +1100 Fix rendering of <text> tags when they contain <desc> tags or similar Bug #665824. rsvg-base.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 2c2917c3c19fbc51503ef19300e09a0da457b1fe Author: Christian Persch <chpe@gnome.org> Date: Sat Dec 17 00:20:11 2011 +0100 Rework rsvg-view Drop gtk2, use cairo surfaces instead of pixbuf, use GIO, load the SVG just once instead of every time we zoom or print, and remove some unused or unnecessary options. Makefile.am | 26 -- librsvg.def | 1 - test-display.c | 706 ++++++++++++++++++++++---------------------------------- 3 files changed, 281 insertions(+), 452 deletions(-) commit af4e05f890cbe93d61d4e4a52f037e375d3126c4 Author: Christian Persch <chpe@gnome.org> Date: Mon Dec 19 19:52:06 2011 +0100 Post release version bump configure.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)