commit 2a6c9e56a79599ddef50fe6a8c23cae4351076b4 Author: Christian Persch Date: Mon Dec 19 19:41:28 2011 +0100 Version 2.35.1 NEWS | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit 797a4c2ae2a6d95e43966d5b84d1b7c1f24e6548 Author: Christian Persch Date: Thu Dec 15 16:10:28 2011 +0100 Unify desc, title and metadata handlers They're mostly identical, so merge the code into just one copy. rsvg-base.c | 214 ++++++++++++++++++++--------------------------------------- 1 files changed, 71 insertions(+), 143 deletions(-) commit a61da7471f951317e665f90fea51badc57781a2c Author: Christian Persch Date: Thu Dec 15 15:43:29 2011 +0100 Deprecate the title, desc, and metadata accessors They're unused except for bindings, according to codesearch. They're also implemented incorrectly (only allow retrieving the toplevel's data), and did I mention they're completely unused? rsvg-base.c | 6 ++++++ rsvg.h | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) commit 320cac5008a6b0db5900098404b98eed9073ad57 Author: Christian Persch Date: Thu Dec 15 15:30:32 2011 +0100 Plug mem leaks When parsing an SVG file with , <desc>, or <metadata> elements on more then one element, the result was that the last element's data won. Instead, only parse these elements on the toplevel <svg> element, since that's what the API exposes in rsvg_handle_get_{desc,title,metadata}. ==673== 44 (12 direct, 32 indirect) bytes in 1 blocks are definitely lost in loss record 3,849 of 5,438 ==673== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==673== by 0x4C4EB5A: standard_malloc (gmem.c:85) ==673== by 0x4C4EF00: g_malloc (gmem.c:159) ==673== by 0x4C62C7D: g_slice_alloc (gslice.c:1003) ==673== by 0x4C66AD9: g_string_sized_new (gstring.c:121) ==673== by 0x4C67116: g_string_new (gstring.c:147) ==673== by 0x4059306: rsvg_start_element (rsvg-base.c:403) ==673== 44 (12 direct, 32 indirect) bytes in 1 blocks are definitely lost in loss record 3,850 of 5,438 ==673== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==673== by 0x4C4EB5A: standard_malloc (gmem.c:85) ==673== by 0x4C4EF00: g_malloc (gmem.c:159) ==673== by 0x4C62C7D: g_slice_alloc (gslice.c:1003) ==673== by 0x4C66AD9: g_string_sized_new (gstring.c:121) ==673== by 0x4C67116: g_string_new (gstring.c:147) ==673== by 0x4059306: rsvg_start_element (rsvg-base.c:403) https://bugzilla.gnome.org/show_bug.cgi?id=665824 rsvg-base.c | 48 +++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 39 insertions(+), 9 deletions(-) commit 2aad12dc58e4f99642683970d26839dedc0ef4ae Author: Hans de Goede <jwrdegoede@fedoraproject.org> Date: Sat Dec 10 21:04:49 2011 +0100 Fix rsvg.h causing an "internal" deprated warning Before this patch rsvg.h marks the RsvgSizeFunc *type* as deprecated, and then uses it to declare other deprecated functions, causing gcc to always emit a depecrated warning as soon as rsvg.h is included. This breaks compilation of apps which compile with -Werror. Fix this by not making the RsvgSizeFunc type deprecated, but leaving the function prototypes using it as deprecated. https://bugzilla.gnome.org/show_bug.cgi?id=665905 rsvg.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 9ab81da702fe3b86bce1724452d097712822b037 Author: Christian Persch <chpe@gnome.org> Date: Sat Dec 3 19:13:18 2011 +0100 Simplify angle handling rsvg-filter.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit f0621f3aca35df40370e8ad8c827d8a016214840 Author: Christian Persch <chpe@gnome.org> Date: Sat Dec 3 18:31:46 2011 +0100 Plug a refount leak ==9147== 691,200 bytes in 1 blocks are possibly lost in loss record 5,494 of 5,494 ==9147== at 0x4029467: calloc (vg_replace_malloc.c:467) ==9147== by 0x518BB09: _pixman_bits_image_init (pixman-bits-image.c:1437) ==9147== by 0x518BBD7: pixman_image_create_bits (pixman-bits-image.c:1503) ==9147== by 0x499CD4E: _cairo_image_surface_create_with_pixman_format (cairo-image-surface.c:329) ==9147== by 0x499CE14: cairo_image_surface_create (cairo-image-surface.c:379) ==9147== by 0x403EA89: _rsvg_image_surface_new (rsvg-filter.c:160) ==9147== by 0x404112B: rsvg_filter_primitive_offset_render (rsvg-filter.c:1618) ==9147== by 0x4049D6F: rsvg_filter_render (rsvg-filter.c:86) ==9147== 460 (288 direct, 172 indirect) bytes in 1 blocks are definitely lost in loss record 5,205 of 5,494 ==9147== at 0x402AD89: malloc (vg_replace_malloc.c:236) ==9147== by 0x4999F1A: _cairo_image_surface_create_for_pixman_image (cairo-image-surface.c:158) ==9147== by 0x499CD60: _cairo_image_surface_create_with_pixman_format (cairo-image-surface.c:335) ==9147== by 0x499CE14: cairo_image_surface_create (cairo-image-surface.c:379) ==9147== by 0x403EA89: _rsvg_image_surface_new (rsvg-filter.c:160) ==9147== by 0x404112B: rsvg_filter_primitive_offset_render (rsvg-filter.c:1618) ==9147== by 0x4049D6F: rsvg_filter_render (rsvg-filter.c:86) rsvg-filter.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) commit 7e56ccac5e25aab873e7d7fc42271878853d1a7d Author: Christian Persch <chpe@gnome.org> Date: Sat Dec 3 18:30:02 2011 +0100 Add NULL checks rsvg-filter.c | 128 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 125 insertions(+), 3 deletions(-) commit 167533f0b308b6f4f5799b7ad3a29d40c8d9fc1a Author: Christian Persch <chpe@gnome.org> Date: Tue Nov 29 00:05:36 2011 +0100 Fix refcount problem Need to reference the source surface put into the results stack. This fixes a regression introduced in commit 1b3d2ea55a1be67e0548bf76903ff905888e2e18. rsvg-filter.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 1af28cd186ace50c87ce8d90203c52f50ed45f83 Author: KUROSAWA Takeshi <taken.spc@gmail.com> Date: Sat Nov 26 00:11:38 2011 +0900 Support basic vertical writing (Gnome Bug #664533) Support vertical writing text (writing-mode: tb-rl | tb) http://www.w3.org/TR/SVG11/text.html#SettingInlineProgressionDirection Bump pango dependency to 1.16.0 to use its vertical text APIs. Currently, we ignore both glyph-orientation-vertical and glyph-orientation-horizontal. configure.in | 2 +- rsvg-cairo-draw.c | 30 +++++++++++--- rsvg-styles.c | 21 +++++++--- rsvg-styles.h | 2 + rsvg-text.c | 111 ++++++++++++++++++++++++++++++++++++++--------------- 5 files changed, 122 insertions(+), 44 deletions(-) commit 52672aff2e8166f972a3461fbc4c7a311b7bb5e6 Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 22:59:14 2011 +0100 Remove unused struct member rsvg-structure.h | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 9cc9d6faabb82bb1cf3320239a44ad79fc45a64b Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 22:57:21 2011 +0100 Move definition to rsvg-filter.c Since that's the only place it's used. rsvg-filter.h | 4 ++++ rsvg-private.h | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) commit 6757170a5e4a25939d323cc9cb24cd6982cff237 Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 22:45:17 2011 +0100 Flush the surface before accessing its pixels rsvg-filter.c | 41 +++++++++++++++++++++++++++++++++++++++-- 1 files changed, 39 insertions(+), 2 deletions(-) commit a4eb1b8318d8db17d9f684ed4d9b14a60b20b326 Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 22:35:17 2011 +0100 Remove unused function rsvg-image.c | 80 ++++++++++++++++++++++----------------------------------- rsvg-image.h | 2 - 2 files changed, 31 insertions(+), 51 deletions(-) commit 95c359713a51b02a5e6693fd741dff20d08be7ae Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 22:31:20 2011 +0100 Remove unused functions rsvg-cairo-draw.c | 54 ----------------------------------------------------- rsvg-cairo-draw.h | 3 -- 2 files changed, 0 insertions(+), 57 deletions(-) commit 1bc03686b1baaf469f131014ca6f8fb4f4bf6cfa Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 22:29:37 2011 +0100 Add rsvg_cairo_surface_to_pixbuf and use it rsvg-cairo-draw.c | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++ rsvg-private.h | 1 + rsvg.c | 36 ++++++----------- 3 files changed, 127 insertions(+), 23 deletions(-) commit 7308a1b33787835a1228b7b3537d2af43d97558b Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 21:47:24 2011 +0100 Remove unused RsvgRender vfuncs The render_image and get_image_of_node vfuncs are obsoleted by the corresponding cairo_surface_t versions. rsvg-base.c | 12 -------- rsvg-cairo-clip.c | 9 ------ rsvg-cairo-draw.c | 74 --------------------------------------------------- rsvg-cairo-draw.h | 4 --- rsvg-cairo-render.c | 2 - rsvg-private.h | 7 ----- 6 files changed, 0 insertions(+), 108 deletions(-) commit dccf2281f56d893551bf8ba76ce6e131ea66c749 Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 21:40:23 2011 +0100 NULL check before dereference ... not afterwards! rsvg-filter.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit e7e5622c39157f1e6880cb24b7949344a182f5fb Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 21:24:45 2011 +0100 Use cairo image surfaces ... instead of GdkPixbufs to store the filter results. rsvg-base.c | 9 + rsvg-cairo-clip.c | 11 + rsvg-cairo-draw.c | 202 +++++++++------ rsvg-cairo-draw.h | 2 + rsvg-cairo-render.c | 1 + rsvg-filter.c | 726 +++++++++++++++++++++++++++------------------------ rsvg-image.c | 44 +++- rsvg-image.h | 6 +- rsvg-private.h | 5 + 9 files changed, 569 insertions(+), 437 deletions(-) commit c1981e0d7f28246cf918aca2084c9d2d9497930c Author: Christian Persch <chpe@gnome.org> Date: Sun Nov 27 00:03:18 2011 +0100 Make _rsvg_pixbuf_new_cleared static and remove always-same parameters rsvg-filter.c | 41 ++++++++++++++++++++--------------------- rsvg-private.h | 2 -- 2 files changed, 20 insertions(+), 23 deletions(-) commit 5a9fb9e348ca8ebe182797d5750dea60a37357ea Author: Christian Persch <chpe@gnome.org> Date: Sat Nov 26 23:58:13 2011 +0100 Make some functions static rsvg-filter.c | 4 ++-- rsvg-filter.h | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) commit 1b3d2ea55a1be67e0548bf76903ff905888e2e18 Author: Christian Persch <chpe@gnome.org> Date: Sat Nov 26 23:33:34 2011 +0100 Make filters render to a surface ... instead of into a GdkPixbuf. rsvg-cairo-draw.c | 70 +++++++++++++++++--------------------------------- rsvg-cairo-render.c | 2 +- rsvg-cairo-render.h | 2 +- rsvg-filter.c | 60 +++++++++++++++++++++++++++++++++++-------- rsvg-filter.h | 7 +++- 5 files changed, 80 insertions(+), 61 deletions(-) commit 6ceaecc069bdc606f9cbf9ed3bcd57fb6861f4f0 Author: Christian Persch <chpe@gnome.org> Date: Sat Nov 26 22:35:11 2011 +0100 Use cairo_image_surface_create() directly Instead of allocating the pixels then creating a surface from data, just create the surface directly. This has the added benefit that cairo checks the for valid width and height. rsvg-cairo-draw.c | 37 +++++++++++++++++++------------------ 1 files changed, 19 insertions(+), 18 deletions(-) commit 0b8f017df3fe4d1975efad610f9afcce8a94f8e3 Author: Christian Persch <chpe@gnome.org> Date: Sat Nov 26 22:18:17 2011 +0100 Add rsvg_get_surface_of_node Similar to rsvg_get_pixbuf_of_node except that it returns a cairo_surface_t. rsvg-base.c | 6 ++++++ rsvg-cairo-clip.c | 1 + rsvg-cairo-draw.c | 35 +++++++++++++++++++++++++++++++++++ rsvg-cairo-draw.h | 2 ++ rsvg-cairo-render.c | 2 ++ rsvg-private.h | 4 +++- 6 files changed, 49 insertions(+), 1 deletions(-) commit 552996258212827075a8f192ab81764cd591a939 Author: Christian Persch <chpe@gnome.org> Date: Fri Nov 25 22:58:30 2011 +0100 introspection: Hide deprecated stuff rsvg.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) commit 9feb6fd941ba6c8f3fe0c22d15341f0b8a291a0f Author: Christian Persch <chpe@gnome.org> Date: Fri Nov 25 22:53:20 2011 +0100 introspection: Skip internal stuff Makefile.am | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit 26c545511bd0ba15d79f0df18ab80ea19ff8cb1e Author: KUROSAWA Takeshi <taken.spc@gmail.com> Date: Sat Nov 26 00:10:17 2011 +0900 Remove unused member 'orientation' RsvgTextLayout's 'orientation' is never used. Bug #664533. rsvg-text.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) commit 8573a7cd9549c698b5024aafd3b3dd8569449f8e Author: KUROSAWA Takeshi <taken.spc@gmail.com> Date: Sat Nov 26 00:06:19 2011 +0900 Set correct value when unicode-bidi: inherit; Bug #664533. rsvg-styles.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 7177e49b0223dbd32daf5d0f910d4dbdb5cb0659 Author: Kurosawa Takeshi <taken.spc@gmail.com> Date: Thu Nov 24 18:03:18 2011 +0100 Clamp opacity value to range 0 to 1 Our opacity parsing function allows * number values outside range 0.0 to 1.0 * %-values. However this is incorrect behavior. * http://www.w3.org/TR/SVG11/painting.html#FillOpacityProperty * http://www.w3.org/TR/SVGTiny12/painting.html#FillOpacityProperty rsvg-css.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 154dcd5f4366dc5080a6582b51b0769c51c0b068 Author: Alexandre Rostovtsev <tetromino@gentoo.org> Date: Wed Nov 23 17:41:12 2011 -0500 Use RSVG_API_VERSION in the .gir filename RSVG_API_VERSION == "2.0" RSVG_API_VERSION_U == "2_0" We want to use 2.0 when referring to the .gir filename, and 2_0 when referring to the automake targets derived from the filename. Otherwise, parallel make fails. Thanks to Rafał Mużyło <galtgendo@o2.pl> for pointing this out in https://bugs.gentoo.org/show_bug.cgi?id=391215#c10 https://bugzilla.gnome.org/show_bug.cgi?id=664684 Makefile.am | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit c69baca5059ec40c61ae06318f337fc55965738d Author: Christian Persch <chpe@gnome.org> Date: Thu Nov 24 14:07:20 2011 +0100 Post release version bump configure.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)