commit dfb94946cf58ca16f7f94308a4f91b0c9a06c124 Author: Federico Mena Quintero Date: Sat Jul 14 12:53:03 2018 -0500 Makefile.am: remove rsvg-filter.h Makefile.am | 1 - 1 file changed, 1 deletion(-) commit 44abb1eca7a0dd94503366697b58a0c759866342 Merge: 05391bd6 215e5aca Author: Federico Mena Quintero Date: Sat Jul 14 12:51:15 2018 -0500 Merge branch 'pborelli/librsvg-cleanup' commit 215e5aca1eb644cc85b49fc146c93231ff0aaf89 Author: Federico Mena Quintero Date: Sat Jul 14 12:51:06 2018 -0500 Rustfmt rsvg_internals/src/load.rs | 2 +- rsvg_internals/src/parsers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 05391bd6fc892d6e7c093033fda5fc6af96ea342 Author: Federico Mena Quintero Date: Sat Jul 14 12:45:56 2018 -0500 Update NEWS NEWS | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 81e74f0b72c2fe67e67d685c92154fb6f773195a Merge: a55c1919 daa37ae5 Author: Federico Mena Quintero Date: Sat Jul 14 12:20:58 2018 -0500 Merge branch 'YaLTeR/librsvg-filters-to-rust-9' With this, all the C nodes are ported to Rust!!!!! commit a55c1919d2ab0872b4af56769971c0e20ac43169 Merge: 93c0fb64 8215d7f1 Author: Federico Mena Quintero Date: Fri Jul 13 05:24:07 2018 +0000 Merge branch 'add-debuginfo-to-release' into 'master' Include Rust debuginfo in release builds Closes #312 See merge request GNOME/librsvg!95 commit daa37ae5a6c03672a152ac247c4f26befe3d8c77 Author: Ivan Molodetskikh Date: Fri Jul 13 00:42:21 2018 +0200 Remove RsvgCNodeImpl Makefile.am | 1 - librsvg/rsvg-private.h | 15 -------- rsvg_internals/src/cnode.rs | 92 --------------------------------------------- rsvg_internals/src/lib.rs | 3 -- rsvg_internals/src/node.rs | 12 ------ rsvg_internals/src/util.rs | 8 ---- 6 files changed, 131 deletions(-) commit 3fd812c8b165f537221e3ffc1e9e01a61184ace8 Author: Ivan Molodetskikh Date: Thu Jul 12 23:11:19 2018 +0200 Fix BackgroundImage rsvg_internals/src/filters/context.rs | 5 +- .../svg1.1/filters-background-01-f-ref.png | Bin 0 -> 18990 bytes .../reftests/svg1.1/filters-background-01-f.svg | 159 +++++++++++++++++++++ 3 files changed, 163 insertions(+), 1 deletion(-) commit 9090007b8dab4586074e7948a3a2eef7e0a947c2 Author: Ivan Molodetskikh Date: Thu Jul 12 15:46:25 2018 +0200 Get rid of more filter FFI leftovers Cargo.lock | 16 +++ Makefile.am | 1 - rsvg_internals/Cargo.toml | 1 + rsvg_internals/src/drawing_ctx.rs | 4 +- rsvg_internals/src/filters/blend.rs | 9 +- rsvg_internals/src/filters/color_matrix.rs | 9 +- rsvg_internals/src/filters/component_transfer.rs | 9 +- rsvg_internals/src/filters/composite.rs | 9 +- rsvg_internals/src/filters/convolve_matrix.rs | 9 +- rsvg_internals/src/filters/displacement_map.rs | 9 +- rsvg_internals/src/filters/ffi.rs | 120 ----------------- rsvg_internals/src/filters/flood.rs | 9 +- rsvg_internals/src/filters/gaussian_blur.rs | 9 +- rsvg_internals/src/filters/image.rs | 9 +- .../src/filters/light/diffuse_lighting.rs | 9 +- .../src/filters/light/specular_lighting.rs | 9 +- rsvg_internals/src/filters/merge.rs | 9 +- rsvg_internals/src/filters/mod.rs | 145 +++++++++++++++++---- rsvg_internals/src/filters/morphology.rs | 9 +- rsvg_internals/src/filters/offset.rs | 9 +- rsvg_internals/src/filters/tile.rs | 9 +- rsvg_internals/src/filters/turbulence.rs | 9 +- rsvg_internals/src/lib.rs | 1 + 23 files changed, 175 insertions(+), 257 deletions(-) commit adb439791bef80b61fcb5d5205b08a4870a96495 Author: Ivan Molodetskikh Date: Thu Jul 12 14:53:44 2018 +0200 Fix kernelUnitLength handling rsvg_internals/src/filters/convolve_matrix.rs | 25 ++++++++------ .../src/filters/light/diffuse_lighting.rs | 36 ++++++++++++++------- rsvg_internals/src/filters/light/light_source.rs | 22 +++---------- .../src/filters/light/specular_lighting.rs | 36 ++++++++++++++------- rsvg_internals/src/surface_utils/shared_surface.rs | 8 ++--- .../reftests/filter-kernel-unit-length-ref.png | Bin 0 -> 3808 bytes .../reftests/filter-kernel-unit-length.svg | 30 +++++++++++++++++ 7 files changed, 104 insertions(+), 53 deletions(-) commit e507a2a962cd98491c48442aa00a6d2a05c40b5f Author: Paolo Borelli Date: Wed Jul 11 10:56:53 2018 +0200 parsers: remove unused function librsvg/rsvg-css.h | 14 ------- rsvg_internals/src/lib.rs | 2 +- rsvg_internals/src/parsers.rs | 91 ++----------------------------------------- 3 files changed, 4 insertions(+), 103 deletions(-) commit 8215d7f1f581f0aaa317cccc3e974c61d1a6ad84 Author: Ivan Molodetskikh Date: Thu Jul 12 16:06:35 2018 +0200 Include Rust debuginfo in release builds Cargo.toml | 1 + 1 file changed, 1 insertion(+) commit 25bc1bbb7c3cb3ef90c9c208d2fa5ee24c532c90 Author: Ivan Molodetskikh Date: Wed Jul 11 23:04:27 2018 +0200 Pass large struct by reference in Turbulence Significantly improves perf. I was sure Rust would do this optimization automatically but looks like it doesn't. rsvg_internals/src/filters/turbulence.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit aa825a02299bc5f866c447dbedba86b6791683dd Author: Ivan Molodetskikh Date: Wed Jul 11 21:38:56 2018 +0200 Use stack arrays in filters::light::normal() Improves performance by avoiding stack allocations (which are there even in release builds). rsvg_internals/src/filters/light/mod.rs | 149 ++++++++++++++++---------------- 1 file changed, 75 insertions(+), 74 deletions(-) commit 915abe95cfa1ad0f5f76272b0bb38d4d320114a2 Author: Ivan Molodetskikh Date: Wed Jul 11 13:23:03 2018 +0200 Clean up some C filter leftovers librsvg/rsvg-filter.h | 70 ------------ librsvg/rsvg-load.c | 1 - rsvg_internals/src/drawing_ctx.rs | 8 +- rsvg_internals/src/filters/context.rs | 201 +--------------------------------- rsvg_internals/src/filters/ffi.rs | 52 +-------- rsvg_internals/src/filters/mod.rs | 2 +- rsvg_internals/src/lib.rs | 12 -- 7 files changed, 7 insertions(+), 339 deletions(-) commit 884a643251dd9953ac84fe7c7035db545525871b Author: Paolo Borelli Date: Wed Jul 11 10:42:02 2018 +0200 load: move the set_atts logic to rust librsvg/rsvg-load.c | 26 ++++++-------------------- librsvg/rsvg-private.h | 4 ---- rsvg_internals/src/lib.rs | 5 +---- rsvg_internals/src/load.rs | 28 ++++++++++++++++++++++++++++ rsvg_internals/src/node.rs | 24 ------------------------ rsvg_internals/src/state.rs | 16 ---------------- 6 files changed, 35 insertions(+), 68 deletions(-) commit 293e69d4307a211ce5bc576384fbba7bde4b0ef0 Author: Ivan Molodetskikh Date: Wed Jul 11 12:57:29 2018 +0200 Refactor/fix some transformations in filters rsvg_internals/src/filters/convolve_matrix.rs | 13 +++++-------- rsvg_internals/src/filters/displacement_map.rs | 6 ++---- rsvg_internals/src/filters/gaussian_blur.rs | 5 ++--- .../src/filters/light/diffuse_lighting.rs | 13 +++++-------- .../src/filters/light/specular_lighting.rs | 13 +++++-------- rsvg_internals/src/filters/morphology.rs | 6 ++---- rsvg_internals/src/filters/offset.rs | 6 ++---- .../bugs/634324-blur-negative-transform-ref.png | Bin 29848 -> 25021 bytes 8 files changed, 23 insertions(+), 39 deletions(-) commit 91e4d291072e381183cd9db9de4ae4705c9c2879 Author: Ivan Molodetskikh Date: Wed Jul 11 11:55:19 2018 +0200 Port feTile The last filter is now in Rust! 🎉 Makefile.am | 4 +- librsvg/filters/common.c | 660 --------------------- librsvg/filters/common.h | 181 ------ librsvg/filters/tile.c | 163 ----- rsvg_internals/src/drawing_ctx.rs | 60 +- rsvg_internals/src/filters/context.rs | 10 +- rsvg_internals/src/filters/ffi.rs | 64 +- rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/filters/tile.rs | 123 ++++ rsvg_internals/src/load.rs | 48 +- .../reftests/svg1.1/filters-tile-01-b-ref.png | Bin 0 -> 6146 bytes .../fixtures/reftests/svg1.1/filters-tile-01-b.svg | 80 +++ 12 files changed, 260 insertions(+), 1134 deletions(-) commit 6b53b1b92a0d52d13767b678c3bf10e02a74b39e Author: Ivan Molodetskikh Date: Wed Jul 11 11:07:39 2018 +0200 Port lighting filters Makefile.am | 8 +- librsvg/filters/diffuse_lighting.c | 220 ---------- librsvg/filters/light_source.c | 474 --------------------- librsvg/filters/light_source.h | 89 ---- librsvg/filters/specular_lighting.c | 222 ---------- rsvg_internals/src/filters/context.rs | 7 + rsvg_internals/src/filters/error.rs | 3 + rsvg_internals/src/filters/ffi.rs | 2 + .../src/filters/light/diffuse_lighting.rs | 219 ++++++++++ rsvg_internals/src/filters/light/light_source.rs | 264 ++++++++++++ rsvg_internals/src/filters/light/mod.rs | 191 +++++++++ .../src/filters/light/specular_lighting.rs | 241 +++++++++++ rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/load.rs | 84 ++-- .../reftests/svg1.1/filters-diffuse-01-f-ref.png | Bin 0 -> 18606 bytes .../reftests/svg1.1/filters-diffuse-01-f.svg | 152 +++++++ .../reftests/svg1.1/filters-light-01-f-ref.png | Bin 0 -> 30163 bytes .../reftests/svg1.1/filters-light-01-f.svg | 187 ++++++++ .../reftests/svg1.1/filters-light-02-f-ref.png | Bin 0 -> 11093 bytes .../reftests/svg1.1/filters-light-02-f.svg | 97 +++++ .../reftests/svg1.1/filters-light-03-f-ref.png | Bin 0 -> 11991 bytes .../reftests/svg1.1/filters-light-03-f.svg | 124 ++++++ .../reftests/svg1.1/filters-light-04-f-ref.png | Bin 0 -> 10935 bytes .../reftests/svg1.1/filters-light-04-f.svg | 136 ++++++ .../reftests/svg1.1/filters-light-05-f-ref.png | Bin 0 -> 26037 bytes .../reftests/svg1.1/filters-light-05-f.svg | 252 +++++++++++ .../reftests/svg1.1/filters-specular-01-f-ref.png | Bin 0 -> 26606 bytes .../reftests/svg1.1/filters-specular-01-f.svg | 195 +++++++++ tests/fixtures/reftests/svg1.1/images/bumpMap2.png | Bin 0 -> 657 bytes tests/fixtures/reftests/svg1.1/images/bumpMap3.png | Bin 0 -> 433 bytes 30 files changed, 2122 insertions(+), 1046 deletions(-) commit 93c0fb64d6cdab0e1ed3f67f5c90f74ef226bfb4 Author: Federico Mena Quintero Date: Tue Jul 10 16:13:41 2018 +0200 Ignore filters-example-01-b.svg This is failing on i386 as well, because of text rendering differences. .../svg1.1/{filters-example-01-b.svg => ignore-filters-example-01-b.svg} | 0 1 file changed, 0 insertions(+), 0 deletions(-) commit f8ebbfd06e3f35e6c30205ddc7cdaac0865ace08 Author: Federico Mena Quintero Date: Tue Jul 10 15:36:18 2018 +0200 Ignore filter-composite-color-interpolation-filters.svg due to 32-bit failures That test is failing on i386; it looks like coordinate rounding is different. Also, it is *different* again if you build with optimizations / in release mode. We'll have to make a decision on what do do for tests in 32-bit boxes in general. ...ilters.svg => ignore-filter-composite-color-interpolation-filters.svg} | 0 1 file changed, 0 insertions(+), 0 deletions(-) commit 5c6fab8b9e5227f33a74b44e3c0d08dd8a2cb047 Merge: 9d2f41f7 d9c2af77 Author: Federico Mena Quintero Date: Tue Jul 10 14:18:31 2018 +0200 Merge branch 'YaLTeR/librsvg-filters-to-rust-8' commit d9c2af7776bbe2a6dbfb665d360d902eca04ac14 Author: Ivan Molodetskikh Date: Tue Jul 10 09:59:24 2018 +0200 Port feTurbulence Makefile.am | 2 +- librsvg/filters/turbulence.c | 437 ------------------- rsvg_internals/src/filters/ffi.rs | 3 +- rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/filters/turbulence.rs | 466 +++++++++++++++++++++ rsvg_internals/src/load.rs | 14 +- .../reftests/bugs/241-light-source-type-ref.png | Bin 4044 -> 4029 bytes .../reftests/svg1.1/filters-turb-01-f-ref.png | Bin 0 -> 140912 bytes .../fixtures/reftests/svg1.1/filters-turb-01-f.svg | 102 +++++ .../reftests/svg1.1/filters-turb-02-f-ref.png | Bin 0 -> 18261 bytes .../fixtures/reftests/svg1.1/filters-turb-02-f.svg | 148 +++++++ 11 files changed, 727 insertions(+), 446 deletions(-) commit 1d2ba588372614c1a50864fb638c059be07e60c9 Author: Ivan Molodetskikh Date: Mon Jul 9 16:21:08 2018 +0200 Fix filters being applied to masks rsvg_internals/src/drawing_ctx.rs | 8 +- .../reftests/svg1.1/masking-filter-01-f-ref.png | Bin 0 -> 6174 bytes .../reftests/svg1.1/masking-filter-01-f.svg | 81 +++++++++++++++++++++ 3 files changed, 88 insertions(+), 1 deletion(-) commit fb41ad2d8946bff2289ac34fa8288f14b6d4b4d1 Author: Ivan Molodetskikh Date: Mon Jul 9 16:09:53 2018 +0200 Fix empty and non-existing filter rendering rsvg_internals/src/drawing_ctx.rs | 19 ++++- rsvg_internals/src/filters/context.rs | 30 +++---- rsvg_internals/src/filters/ffi.rs | 10 ++- tests/fixtures/reftests/nonexisting-filter-ref.png | Bin 93 -> 89 bytes .../reftests/svg1.1/filters-felem-01-b-ref.png | Bin 0 -> 11066 bytes .../reftests/svg1.1/filters-felem-01-b.svg | 90 +++++++++++++++++++++ 6 files changed, 131 insertions(+), 18 deletions(-) commit 4f1bb8549d19916495b7ab0d2737b72a9f129f43 Author: Ivan Molodetskikh Date: Mon Jul 9 15:42:57 2018 +0200 Add some missing filter tests .../reftests/svg1.1/filters-comptran-01-b-ref.png | Bin 0 -> 16093 bytes .../reftests/svg1.1/filters-comptran-01-b.svg | 126 ++++++++++++++++++++ .../reftests/svg1.1/filters-example-01-b-ref.png | Bin 0 -> 22681 bytes .../reftests/svg1.1/filters-example-01-b.svg | 93 +++++++++++++++ .../reftests/svg1.1/filters-felem-02-f-ref.png | Bin 0 -> 13219 bytes .../reftests/svg1.1/filters-felem-02-f.svg | 127 +++++++++++++++++++++ 6 files changed, 346 insertions(+) commit 50a21851797df25ac413d999c0c12923b60368d2 Author: Ivan Molodetskikh Date: Mon Jul 9 14:55:50 2018 +0200 Fix circle dashed stroke rendering rsvg_internals/src/shapes.rs | 20 +-- .../reftests/svg1.1/filters-overview-01-b-ref.png | Bin 0 -> 34241 bytes .../reftests/svg1.1/filters-overview-01-b.svg | 165 +++++++++++++++++++ .../reftests/svg1.1/filters-overview-02-b-ref.png | Bin 0 -> 41760 bytes .../reftests/svg1.1/filters-overview-02-b.svg | 178 +++++++++++++++++++++ .../reftests/svg1.1/filters-overview-03-b-ref.png | Bin 0 -> 41934 bytes .../reftests/svg1.1/filters-overview-03-b.svg | 166 +++++++++++++++++++ .../reftests/svg1.1/struct-use-04-b-ref.png | Bin 19669 -> 19666 bytes 8 files changed, 519 insertions(+), 10 deletions(-) commit 33b76b41d093549dfee252874318874ef4a481a3 Author: Ivan Molodetskikh Date: Mon Jul 9 12:25:35 2018 +0200 Port feGaussianBlur Makefile.am | 2 +- librsvg/filters/gaussian_blur.c | 704 --------------------- rsvg_internals/src/filters/ffi.rs | 1 + rsvg_internals/src/filters/gaussian_blur.rs | 313 +++++++++ rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/load.rs | 14 +- .../fixtures/reftests/bugs/282-drop-shadow-ref.png | Bin 1726 -> 1733 bytes .../bugs/634324-blur-negative-transform-ref.png | Bin 14003 -> 29848 bytes .../reftests/svg1.1/filters-gauss-01-b-ref.png | Bin 0 -> 20705 bytes .../reftests/svg1.1/filters-gauss-01-b.svg | 93 +++ .../reftests/svg1.1/filters-gauss-02-f-ref.png | Bin 0 -> 6675 bytes .../reftests/svg1.1/filters-gauss-02-f.svg | 85 +++ .../reftests/svg1.1/filters-gauss-03-f-ref.png | Bin 0 -> 4347 bytes .../reftests/svg1.1/filters-gauss-03-f.svg | 65 ++ 14 files changed, 566 insertions(+), 712 deletions(-) commit 1e3eaec84540c9e8da70b1d02dffb486bf87ffd0 Author: Ivan Molodetskikh Date: Mon Jul 9 12:24:54 2018 +0200 Add SharedImageSurface::convolve() rsvg_internals/src/surface_utils/shared_surface.rs | 78 +++++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) commit 9d2f41f7cee3939aafbde30329800786f7493438 Merge: 6b730799 bf2f8689 Author: Federico Mena Quintero Date: Mon Jul 9 10:05:37 2018 +0000 Merge branch 'fontSize' into 'master' Fix #310 - correct font-size of non-standard dpi Closes #310 See merge request GNOME/librsvg!92 commit bf2f86892ebc864e658b86c35a8566e9426074f9 Author: Mike Marcacci Date: Mon Jul 9 00:52:21 2018 -0600 (#310): Respect dpi in font-size rsvg_internals/src/text.rs | 3 +- .../reftests/bugs/310-font-size-at-48dpi-ref.png | Bin 0 -> 5818 bytes .../reftests/bugs/310-font-size-at-48dpi.svg | 62 +++++++++++++++++++++ tests/rsvg-test.c | 5 +- 4 files changed, 67 insertions(+), 3 deletions(-) commit 2cc36ceba304c19a2b0e97942843b3946edc18a8 Author: Mike Marcacci Date: Sun Jul 8 18:51:33 2018 -0600 Fix a small typo in CONTRIBUTING.md CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit aff1d6f504094239b354ee7db7eb33b3b2451f32 Author: Ivan Molodetskikh Date: Thu Jul 5 19:24:42 2018 +0200 Port feDisplacementMap Makefile.am | 2 +- librsvg/filters/displacement_map.c | 248 --------------------- rsvg_internals/src/filters/displacement_map.rs | 186 ++++++++++++++++ rsvg_internals/src/filters/ffi.rs | 1 + rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/load.rs | 14 +- .../reftests/svg1.1/filters-displace-01-f-ref.png | Bin 0 -> 50115 bytes .../reftests/svg1.1/filters-displace-01-f.svg | 141 ++++++++++++ .../reftests/svg1.1/filters-displace-02-f-ref.png | Bin 0 -> 7304 bytes .../reftests/svg1.1/filters-displace-02-f.svg | 90 ++++++++ tests/fixtures/reftests/svg1.1/images/rotate20.png | Bin 0 -> 1434 bytes tests/fixtures/reftests/svg1.1/images/sphere.png | Bin 0 -> 5923 bytes 12 files changed, 427 insertions(+), 256 deletions(-) commit 320eb91b6c0bd84c97ba53aca079744a15730a44 Author: Ivan Molodetskikh Date: Thu Jul 5 19:23:38 2018 +0200 Make convolve_matrix use surface.unpremultiply() rsvg_internals/src/filters/convolve_matrix.rs | 36 +++------------------------ 1 file changed, 4 insertions(+), 32 deletions(-) commit cd6f32c667199590a81610ad53f98f82de60413c Author: Ivan Molodetskikh Date: Thu Jul 5 19:22:16 2018 +0200 Add SharedImageSurface::unpremultiply() rsvg_internals/src/surface_utils/shared_surface.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) commit 1fac6a216ebed8ecd4e5f1a07324af50440be5a9 Author: Ivan Molodetskikh Date: Thu Jul 5 19:22:02 2018 +0200 Add Pixel::{un,}premultiply() rsvg_internals/src/surface_utils/mod.rs | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) commit db4259bd4420dce9df0f0715e56126bcd583fb30 Author: Ivan Molodetskikh Date: Thu Jul 5 17:12:46 2018 +0200 Port feMorphology Makefile.am | 2 +- librsvg/filters/erode.c | 197 --------------------- librsvg/rsvg-private.h | 2 +- rsvg_internals/src/filters/ffi.rs | 1 + rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/filters/morphology.rs | 184 +++++++++++++++++++ rsvg_internals/src/load.rs | 14 +- rsvg_internals/src/node.rs | 2 +- .../filter-morphology-from-reference-page-ref.png | Bin 0 -> 3598 bytes .../filter-morphology-from-reference-page.svg | 37 ++++ .../reftests/svg1.1/filters-morph-01-f-ref.png | Bin 0 -> 32566 bytes .../reftests/svg1.1/filters-morph-01-f.svg | 103 +++++++++++ 12 files changed, 336 insertions(+), 207 deletions(-) commit 6b73079960abcff3d2030e5d39054a4cf8544f93 Merge: e31247c5 5794f0ac Author: Federico Mena Quintero Date: Wed Jul 4 08:13:39 2018 +0000 Merge branch 'wip/ignatenko/cssparser-0.24' into 'master' deps: update cssparser to 0.24 See merge request GNOME/librsvg!91 commit 5794f0ac4ac8748ddfa0b16339ece2c97f7b48d3 Author: Igor Gnatenko Date: Sun Jul 1 12:06:04 2018 +0100 deps: update cssparser to 0.24 Signed-off-by: Igor Gnatenko Cargo.lock | 42 +++++++++++++++++++++--------------------- rsvg_internals/Cargo.toml | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) commit e31247c5519f131dd5303e06e62796aa9b528a15 Merge: 44bf347b e72f1097 Author: Federico Mena Quintero Date: Sun Jul 1 21:25:06 2018 -0500 Merge branch 'YaLTeR/librsvg-filters-to-rust-7' commit 44bf347b084ec916b5148ddf24e0ad19d7003cce Author: Jordan Petridis Date: Sun Jul 1 10:36:31 2018 +0000 CI: drop ubuntu builds since rustc package is outdated. .gitlab-ci.yml | 12 ------------ 1 file changed, 12 deletions(-) commit e72f10979e0f7a69ec245514cca1d642aa531582 Author: Ivan Molodetskikh Date: Sat Jun 30 13:05:44 2018 +0300 Refactor FilterError and FilterContext::get_input() rsvg_internals/src/filters/blend.rs | 11 +- rsvg_internals/src/filters/color_matrix.rs | 9 +- rsvg_internals/src/filters/component_transfer.rs | 9 +- rsvg_internals/src/filters/composite.rs | 13 +- rsvg_internals/src/filters/context.rs | 139 +++++++++++---------- rsvg_internals/src/filters/convolve_matrix.rs | 19 +-- rsvg_internals/src/filters/error.rs | 22 ++-- rsvg_internals/src/filters/ffi.rs | 7 +- rsvg_internals/src/filters/flood.rs | 5 +- rsvg_internals/src/filters/image.rs | 9 +- rsvg_internals/src/filters/merge.rs | 17 +-- rsvg_internals/src/filters/mod.rs | 14 +-- rsvg_internals/src/filters/offset.rs | 9 +- rsvg_internals/src/surface_utils/shared_surface.rs | 25 +++- 14 files changed, 178 insertions(+), 130 deletions(-) commit 0e343e8e297522776bd65949d49717ab7c1094b6 Author: Ivan Molodetskikh Date: Sat Jun 30 12:02:08 2018 +0300 Remove unused line from image.rs rsvg_internals/src/image.rs | 1 - 1 file changed, 1 deletion(-) commit ed37e893b093a261e8ac6d0a4e2adc9375920e45 Author: Ivan Molodetskikh Date: Sat Jun 30 12:01:19 2018 +0300 Rename affine to _affine in FilterContext Silence the unused warning for the time being. Not removing because it has a good comment and because it might be useful for filterRes eventually. rsvg_internals/src/filters/context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 3408974d7afd0e0645203b31eacbdd41f711e8e0 Author: Ivan Molodetskikh Date: Sat Jun 30 11:40:21 2018 +0300 Refactor convolve_matrix to use the scale method rsvg_internals/src/filters/convolve_matrix.rs | 86 ++++++++------------------- 1 file changed, 24 insertions(+), 62 deletions(-) commit ac22549a1438d01ec58c611a4c335dc3c539bb48 Author: Ivan Molodetskikh Date: Sat Jun 30 11:39:38 2018 +0300 Add SharedImageSurface::scale{,_to}() rsvg_internals/src/surface_utils/shared_surface.rs | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) commit 9d5de12dfd8acb853dfa27de9d625338bad8bd85 Author: Ivan Molodetskikh Date: Sat Jun 30 11:39:04 2018 +0300 Add IRect::scale() rsvg_internals/src/filters/context.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) commit ca83a910739261e7407c377100ab09872e0ae123 Author: Ivan Molodetskikh Date: Sat Jun 30 11:16:59 2018 +0300 Change assert! to assert_eq! rsvg_internals/src/filters/color_matrix.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit fe08bb3e840636742003ffe68fda710086346c55 Author: Ivan Molodetskikh Date: Fri Jun 29 22:55:43 2018 +0300 Fix alpha zero check in color_matrix rsvg_internals/src/filters/color_matrix.rs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit f34c011cb8f82fb7c09d8ca5502dfa605f1b981d Author: Ivan Molodetskikh Date: Fri Jun 29 22:51:25 2018 +0300 Fix error message in convolve_matrix rsvg_internals/src/filters/convolve_matrix.rs | 41 +++++++++++++++------------ 1 file changed, 23 insertions(+), 18 deletions(-) commit f8d0308dc9b2e259c7b280ede42b87177dad7c30 Author: Ivan Molodetskikh Date: Thu Jun 28 23:04:03 2018 +0300 Add unit tests for integer parsers rsvg_internals/src/parsers.rs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) commit c3e9bb6289d125d64980aded1145857559ee2729 Author: Ivan Molodetskikh Date: Thu Jun 28 20:43:35 2018 +0300 Port feConvolveMatrix Makefile.am | 2 +- librsvg/filters/convolve_matrix.c | 372 ----------------- rsvg_internals/src/filters/convolve_matrix.rs | 442 +++++++++++++++++++++ rsvg_internals/src/filters/ffi.rs | 1 + rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/load.rs | 14 +- tests/fixtures/reftests/filter-conv-bounds-ref.png | Bin 0 -> 937 bytes tests/fixtures/reftests/filter-conv-bounds.svg | 36 ++ .../reftests/svg1.1/filters-conv-01-f-ref.png | Bin 0 -> 49867 bytes .../fixtures/reftests/svg1.1/filters-conv-01-f.svg | 112 ++++++ .../reftests/svg1.1/filters-conv-02-f-ref.png | Bin 0 -> 32837 bytes .../fixtures/reftests/svg1.1/filters-conv-02-f.svg | 77 ++++ .../reftests/svg1.1/filters-conv-03-f-ref.png | Bin 0 -> 27292 bytes .../fixtures/reftests/svg1.1/filters-conv-03-f.svg | 104 +++++ .../reftests/svg1.1/filters-conv-04-f-ref.png | Bin 0 -> 75850 bytes .../fixtures/reftests/svg1.1/filters-conv-04-f.svg | 163 ++++++++ .../reftests/svg1.1/filters-conv-05-f-ref.png | Bin 0 -> 9265 bytes .../fixtures/reftests/svg1.1/filters-conv-05-f.svg | 83 ++++ .../reftests/svg1.1/images/DisplaceChecker.png | Bin 0 -> 2470 bytes .../images/filters-conv-01-f.includeimage.png | Bin 0 -> 9281 bytes .../reftests/svg1.1/images/purplesquidj.png | Bin 0 -> 48672 bytes .../svg1.1/images/stefan_252_tRNS_opti.png | Bin 0 -> 12777 bytes .../fixtures/reftests/svg1.1/images/townsville.jpg | Bin 0 -> 52480 bytes 23 files changed, 1027 insertions(+), 380 deletions(-) commit 5dc0cda524c2ca881c8d42cb6097f3df293b7086 Author: Ivan Molodetskikh Date: Thu Jun 28 20:42:52 2018 +0300 Add the PixelRectangle iterator to surface_utils rsvg_internals/src/surface_utils/iterators.rs | 138 +++++++++++++++++++++++++- rsvg_internals/src/surface_utils/mod.rs | 13 +++ 2 files changed, 150 insertions(+), 1 deletion(-) commit cc367edd37b1a50f3fab4aa0ce8fa900dcad2282 Author: Ivan Molodetskikh Date: Thu Jun 28 20:42:05 2018 +0300 Add parsers::integer{,-optional-integer}() rsvg_internals/src/parsers.rs | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) commit e0a853812fd14d1e2d721e9474f515ae725e6365 Author: Ivan Molodetskikh Date: Thu Jun 28 20:41:21 2018 +0300 Fix bbox once again rsvg_internals/src/image.rs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) commit 0826dba5a270676dc8c6c3b15b497bc8227dc431 Author: Ivan Molodetskikh Date: Mon Jun 25 19:26:32 2018 +0300 Port feColorMatrix Cargo.lock | 56 ++++ Makefile.am | 2 +- librsvg/filters/color_matrix.c | 300 --------------------- rsvg_internals/Cargo.toml | 1 + rsvg_internals/src/filters/color_matrix.rs | 263 ++++++++++++++++++ rsvg_internals/src/filters/ffi.rs | 1 + rsvg_internals/src/filters/mod.rs | 1 + rsvg_internals/src/lib.rs | 3 + rsvg_internals/src/load.rs | 14 +- .../reftests/svg1.1/filters-color-01-b-ref.png | Bin 0 -> 23085 bytes .../reftests/svg1.1/filters-color-01-b.svg | 112 ++++++++ 11 files changed, 445 insertions(+), 308 deletions(-) commit ab720bfeb73c0728faf7d6594f8201bf7890dc23 Author: Federico Mena Quintero Date: Fri Jun 29 16:54:17 2018 -0500 Use Rc::ptr_eq() instead of our own rc_node_ptr_eq() This is available since Rust 1.17. rsvg_internals/src/drawing_ctx.rs | 9 +++++---- rsvg_internals/src/node.rs | 21 ++++++--------------- rsvg_internals/src/structure.rs | 4 +++- 3 files changed, 14 insertions(+), 20 deletions(-) commit 04860e49038ac6a7f35a6b430d77122b1dee8a23 Merge: c3356745 18add6d1 Author: Federico Mena Quintero Date: Thu Jun 28 08:27:39 2018 -0500 Merge branch 'pborelli/librsvg-font-size' commit 18add6d1ff221a900d1eb34aeb3f4df0af126bc1 Author: Federico Mena Quintero Date: Thu Jun 28 08:27:10 2018 -0500 rustfmt rsvg_internals/src/length.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit d4bf550cd23349b8071bbfc03ec95e599ebc6e68 Author: Paolo Borelli Date: Tue Jun 26 23:37:46 2018 +0200 state: rework font size property Introduce a FontSizeSpec enum and remove special cases for fonts from RsvgLength rsvg_internals/src/length.rs | 246 ++++++++++++++++++++----------------------- rsvg_internals/src/state.rs | 29 ++--- 2 files changed, 125 insertions(+), 150 deletions(-) commit c335674596ed4629f38613887b2540a2e4326cc0 Author: Federico Mena Quintero Date: Wed Jun 27 11:00:40 2018 -0500 Require Rust 1.26 .gitlab-ci.yml | 16 ---------------- COMPILING.md | 2 +- configure.ac | 2 +- 3 files changed, 2 insertions(+), 18 deletions(-) commit 25cf1d8bd0ae9a8bb34fdd5b49d89c3a3f92cf6f Merge: 88c8e6ca a0a36146 Author: Federico Mena Quintero Date: Tue Jun 26 02:02:32 2018 +0000 Merge branch 'draw' into 'master' move code to drawing ctx See merge request GNOME/librsvg!88 commit a0a361465094f7fa6e7020ad0655376816a572f6 Author: Paolo Borelli Date: Mon Jun 25 23:11:44 2018 +0200 shapes: move drawing of path builder here This gets rid of draw.rs Makefile.am | 1 - rsvg_internals/src/draw.rs | 28 ---------------------------- rsvg_internals/src/lib.rs | 1 - rsvg_internals/src/shapes.rs | 14 ++++++++++++-- 4 files changed, 12 insertions(+), 32 deletions(-) commit a4ffab2fa8ddc7165f44be768fb6ecb1be4a2890 Author: Paolo Borelli Date: Mon Jun 25 23:05:55 2018 +0200 drawing-ctx: move stroke_and_fill method to drawing ctx rsvg_internals/src/draw.rs | 203 +------------------------------------- rsvg_internals/src/drawing_ctx.rs | 200 ++++++++++++++++++++++++++++++++++++- 2 files changed, 199 insertions(+), 204 deletions(-) commit 6e6ff754aeaf72a0ccc4320e9b2b6e21db6735b1 Author: Paolo Borelli Date: Mon Jun 25 22:57:18 2018 +0200 drawing-ctx: move draw_pango_layout to the drawing ctx rsvg_internals/src/draw.rs | 161 +------------------------------------ rsvg_internals/src/drawing_ctx.rs | 163 +++++++++++++++++++++++++++++++++++++- rsvg_internals/src/text.rs | 5 +- 3 files changed, 164 insertions(+), 165 deletions(-) commit 79bf3349ab1e8faa8e558f70e153915b49933477 Author: Paolo Borelli Date: Sat Jun 23 11:14:53 2018 +0200 image: inline draw_surface This is the only caller and inlining makes things shorter since we can reuse the surface width etc rsvg_internals/src/draw.rs | 70 --------------------------------------------- rsvg_internals/src/image.rs | 63 ++++++++++++++++++++++++++++++++++------ 2 files changed, 54 insertions(+), 79 deletions(-) commit 981e2e20c6cf4965695e342fd708eade7b8a0b2b Author: Paolo Borelli Date: Sat Jun 23 11:01:38 2018 +0200 drawing-ctx: move clip() method to the draw ctx Also move the set_affine_on_cr helper, for now it is public since other functions need it rsvg_internals/src/draw.rs | 37 +++---------------------------------- rsvg_internals/src/drawing_ctx.rs | 25 +++++++++++++++++++++++++ rsvg_internals/src/image.rs | 4 ++-- rsvg_internals/src/marker.rs | 5 ++--- rsvg_internals/src/mask.rs | 6 ++---- rsvg_internals/src/viewport.rs | 5 ++--- 6 files changed, 36 insertions(+), 46 deletions(-) commit 88c8e6cab32f5f8d29332d57d93c33ab263e2edd Author: Federico Mena Quintero Date: Mon Jun 25 08:53:45 2018 -0500 Cargo update Cargo.lock | 258 ++++++++++++++++++++++++++----------------------------------- 1 file changed, 108 insertions(+), 150 deletions(-) commit a5f49ae266a90b9cf97c64904e790f5873c341ba Merge: 60f8afdf ac574324 Author: Federico Mena Quintero Date: Mon Jun 25 13:29:44 2018 +0000 Merge branch 'ignatenko/fix-build' into 'master' fix casting in filter_related() Closes #302 See merge request GNOME/librsvg!87 commit ac5743244bd889c7596f53f0513cf645a682dcaa Author: Igor Gnatenko Date: Sun Jun 24 18:03:34 2018 +0200 fix casting in filter_related() Fixes: https://gitlab.gnome.org/GNOME/librsvg/issues/302 Signed-off-by: Igor Gnatenko rsvg_internals/src/drawing_ctx.rs | 2 +- rsvg_internals/src/filters/ffi.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 60f8afdfe6c5b667c015b2124cd46fd1d5bb07ee Author: Igor Gnatenko Date: Sun Jun 24 11:31:13 2018 +0000 deps: bump regex to 1 rsvg_internals/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a55e422104fe60b3b33cee0dec59327e44ada962 Author: Federico Mena Quintero Date: Fri Jun 22 21:23:49 2018 -0500 .gitlab-ci.yml: Add rustc 1.26 .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) commit 9c0af468078e1e230679751b03641c76b15b5218 Author: Federico Mena Quintero Date: Fri Jun 22 20:13:30 2018 -0500 Remove RsvgViewBox; return an additional gboolean from rsvg_node_svg_get_view_box() The only purpose of the "active" field in typedef struct { cairo_rectangle_t rect; gboolean active; } RsvgViewBox; was for rsvg_node_svg_get_view_box() to return whether the element actually had a viewBox attribute. If not, the .rect was set to all-zeros. We get rid of this struct, and return a cairo_rectangle_t directly from that function plus an extra boolean. librsvg/rsvg-handle.c | 21 ++++++++++++++++----- librsvg/rsvg-private.h | 6 ------ librsvg/rsvg-structure.h | 8 ++++---- rsvg_internals/src/lib.rs | 2 -- rsvg_internals/src/structure.rs | 30 ++++++++++++++++++++++++++++-- rsvg_internals/src/viewbox.rs | 33 --------------------------------- 6 files changed, 48 insertions(+), 52 deletions(-) commit c41384f3680c768990d681695ec590fee123bc0a Author: Federico Mena Quintero Date: Fri Jun 22 15:03:35 2018 -0500 configure.ac: Post-release version bump configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)